mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
code tweak: use Map.findWithDefault in PGF.Macros.lookMap
This commit is contained in:
@@ -131,7 +131,7 @@ kks = K . KS
|
||||
|
||||
-- lookup with default value
|
||||
lookMap :: (Show i, Ord i) => a -> i -> Map.Map i a -> a
|
||||
lookMap d c m = fromMaybe d $ Map.lookup c m
|
||||
lookMap d c m = Map.findWithDefault d c m
|
||||
|
||||
--- from Operations
|
||||
combinations :: [[a]] -> [[a]]
|
||||
|
||||
Reference in New Issue
Block a user