qol
This commit is contained in:
parent
19fe0a53ff
commit
2c9790a690
7 changed files with 48 additions and 26 deletions
|
|
@ -37,7 +37,7 @@ impl Solution for Day01 {
|
|||
fn parse(input: &str) -> (Vec<u32>, Vec<u32>) {
|
||||
input.lines()
|
||||
.map(|line| line.split_once(" ")
|
||||
.unwrap()
|
||||
.expect(line)
|
||||
)
|
||||
.map(|(x, y)| (x.parse::<u32>().unwrap(), y.parse::<u32>().unwrap()))
|
||||
.unzip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue