We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f688186 commit de31c5aCopy full SHA for de31c5a
Aoc2024/Day04/Solve.lean
@@ -61,7 +61,7 @@ private def is2Mas: Grid -> Bool
61
match1 && match2 && match3
62
| _ => false
63
64
-private def rotate90 (grid : Grid) : Grid := grid.transpose.map (·.reverse)
+private def rotate90 : Grid -> Grid := flipHorizontal ∘ List.transpose
65
66
private def allRotations : List (Grid -> Grid) :=
67
[id, rotate90, iterate 2 rotate90, iterate 3 rotate90]
0 commit comments