Skip to content

Instantly share code, notes, and snippets.

View wfvining's full-sized avatar

Will Vining wfvining

View GitHub Profile
%% Advent of Code 2023 day 3 solution
-module(day3).
-compile(export_all).
load_input(Path) ->
{ok, File} = file:open(Path, [read]),
Input = load_schematic(File),
parse_input(Input).
use std::io::Error as IOError;
use std::io::ErrorKind as IOErrorKind;
use std::io::{Seek, SeekFrom, Read, Write};
use std::fs::File;
use bincode::{
serialize,
deserialize,
deserialize_from,
serialized_size,
SizeLimit,