diff options
| author | Andreas Grois <andi@grois.info> | 2025-04-13 20:43:15 +0200 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2025-04-13 20:43:15 +0200 |
| commit | 671ccf18e506398fd8eb65ebac92ec6d2fd03ccd (patch) | |
| tree | 593e38a09792d820917d8fdc9efecaf6ec67fe00 /Day10.lean | |
| parent | 8dbe99432db14b5f73585b9e34ecff6e61e76ca8 (diff) | |
Lean 4.17
Diffstat (limited to 'Day10.lean')
| -rw-r--r-- | Day10.lean | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1017,7 +1017,7 @@ private def noSolution {area : Area} : (List $ Area.PathHead area) → Bool section ListMonad local instance : Monad List where - bind := List.flatMap + bind := flip List.flatMap pure := List.singleton def part1 (area : Area) : List Nat := do @@ -1470,7 +1470,7 @@ section ListMonad -- We can do this here without perf issues. The list in question will never have more than 2 elements. local instance : Monad List where pure := List.singleton - bind := List.flatMap + bind := flip List.flatMap private inductive WestEastFoldState (area : Area) | inside : Coordinate area.width area.height → WestEastFoldState area |
