code tweak: use Map.findWithDefault in PGF.Macros.lookMap

This commit is contained in:
bjorn
2008-10-16 08:22:04 +00:00
parent 65bafe2a3b
commit 23a139ec07

View File

@@ -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]]