mirror of
https://github.com/Noratrieb/advent-of-code.git
synced 2026-01-16 10:35:02 +01:00
day 9 part 1
This commit is contained in:
parent
8e51f43402
commit
3ace5075d5
10 changed files with 324 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue