mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 21:00:31 +01:00
Use iterator instead of range
This commit is contained in:
@@ -26,7 +26,7 @@ impl BingoCard {
|
||||
}
|
||||
|
||||
// Check vertical lines
|
||||
(0..5).any(|x| (0..5).all(|y| self.ticks[y][x]))
|
||||
(0..5).any(|x| self.ticks.iter().all(|row| row[x]))
|
||||
|
||||
// Diagonals do not count
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user