fixed non exhaustive on rmFirstMatch

This commit is contained in:
Thorn Avery 2019-05-18 19:46:00 +12:00
parent fe97ea1432
commit 43cd96e6cc

View File

@ -39,6 +39,7 @@ numPut :: Either MainCharacter MainEva -> PutCards -> Integer
numPut c p = toInteger $ length $ filter (\x -> (fst x) == c) p
rmFirstMatch :: [a] -> (a -> Bool) -> [a]
rmFirstMatch [] _ = []
rmFirstMatch (l:ls) f
| f l = ls
| otherwise = (l : rmFirstMatch ls f)