Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mdr committed Dec 4, 2024
1 parent f688186 commit de31c5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Aoc2024/Day04/Solve.lean
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private def is2Mas: Grid -> Bool
match1 && match2 && match3
| _ => false

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

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

0 comments on commit de31c5a

Please sign in to comment.