Fix IntMap bug.
This commit is contained in:
@@ -32,6 +32,6 @@ intMapFind f m =
|
||||
findHelper n l =
|
||||
case l of
|
||||
[] -> Nothing
|
||||
(x::xs) -> if f x then Just n else findHelper (n - 1) xs
|
||||
(x::xs) -> if f x then Just n else findHelper (n + 1) xs
|
||||
in
|
||||
findHelper 0 m
|
||||
|
||||
Reference in New Issue
Block a user