Skip to content

Commit de31c5a

Browse files
committed
tweak
1 parent f688186 commit de31c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Aoc2024/Day04/Solve.lean

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private def is2Mas: Grid -> Bool
6161
match1 && match2 && match3
6262
| _ => false
6363

64-
private def rotate90 (grid : Grid) : Grid := grid.transpose.map (·.reverse)
64+
private def rotate90 : Grid -> Grid := flipHorizontal ∘ List.transpose
6565

6666
private def allRotations : List (Grid -> Grid) :=
6767
[id, rotate90, iterate 2 rotate90, iterate 3 rotate90]

0 commit comments

Comments
 (0)