This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% 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). |