mod day1; mod day2; mod day3; mod day4; mod day5; use std::{ fs::File, io::{BufRead as _, BufReader}, }; fn get_lines(name: &str) -> impl Iterator { BufReader::new(File::open(name).unwrap()) .lines() .map(|line| line.unwrap()) } fn parse_line(line: &str, pattern: char) -> impl Iterator + '_ { line.trim().split(pattern).map(|num| num.parse().unwrap()) } fn main() { day5::task1(); day5::task2(); }