implemented goalieSearchExact

This commit is contained in:
Jonathan Lamothe
2019-10-30 23:18:15 -04:00
parent 7e19ee072f
commit 12c8d0bdd6
2 changed files with 31 additions and 1 deletions

View File

@@ -854,7 +854,12 @@ goalieSearchExact
-- ^ The list to search
-> Maybe (Int, Goalie)
-- ^ The result with its index number
goalieSearchExact = undefined
goalieSearchExact sStr goalies = let
results = filter (\(_, goalie) -> sStr == goalie^.gName) $
zip [0..] goalies
in case results of
[] -> Nothing
result:_ -> Just result
-- | Provides a description string for a 'Goalie'
goalieSummary :: Goalie -> String