day 9 part 1

This commit is contained in:
nora 2023-12-09 13:29:38 +01:00
parent 8e51f43402
commit 3ace5075d5
10 changed files with 324 additions and 2 deletions

View file

@ -6,6 +6,10 @@ pub fn integer(input: &str) -> IResult<&str, u64> {
map(digit1, |d: &str| d.parse::<u64>().unwrap())(input)
}
pub fn parse_unwrap(s: &str) -> u64 {
s.parse().unwrap()
}
#[derive(Debug)]
pub struct CollectArrayError;