fixup! Complete day 5.1

This commit is contained in:
Tristan Daniël Maat 2020-12-05 21:12:34 +00:00
parent 647ca9c048
commit 9ce494d427
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -67,7 +67,7 @@ fn find_seat(code: SeatCode) -> (usize, usize) {
}; };
let row = code[..7].iter().fold((0, 127), binary_follow).0; let row = code[..7].iter().fold((0, 127), binary_follow).0;
let col = code[7..].iter().take(3).fold((0, 7), binary_follow).0; let col = code[7..].iter().fold((0, 7), binary_follow).0;
(row, col) (row, col)
} }