Skip to content

Instantly share code, notes, and snippets.

View dbarasti's full-sized avatar
🎯
Focusing

Davide dbarasti

🎯
Focusing
View GitHub Profile
@dbarasti
dbarasti / aoc_1a.rs
Last active December 2, 2022 09:40
First excercise of the AoC in functional Rust
use itertools::Itertools;
use std::{
fs::File,
io::{BufRead, BufReader},
};
fn main() -> std::io::Result<()> {
let f = File::open("test.txt")?;
let reader = BufReader::new(f);