This commit is contained in:
2024-12-20 12:39:51 -08:00
parent f2c6b409fe
commit 567a357dee
8 changed files with 136 additions and 4 deletions

View File

@@ -22,10 +22,6 @@ getGrid {a} text f = foldl update EmptyMap $ gridPoints text
update : Grid a Char × Point Grid a
update grid (c, pt) = updateMap pt (f c) grid
find : a. (a Bool) List a Maybe a
find f Nil = Nothing
find f (x :: xs) = if f x then Just x else find f xs
fromList : k v. {{Ord k}} {{Eq k}} List (k × v) SortedMap k v
fromList xs = foldMap (\ a b => b) EmptyMap xs