Safe Haskell | None |
---|

- type Map k a = SplayTree (Elem k a)
- toList :: Map k a -> [(k, a)]
- fromList :: Ord k => [(k, a)] -> Map k a
- empty :: Map k a
- size :: SplayTree a -> Int
- insert :: Ord k => k -> a -> Map k a -> Map k a
- insertWith :: Ord k => (a -> a -> a) -> k -> a -> Map k a -> Map k a
- delete :: Ord k => k -> Map k a -> Map k a
- lookup :: Eq a => a -> [(a, b)] -> Maybe b
- findWithDefault :: Ord k => a -> k -> Map k a -> (a, Map k a)
- init :: Ord k => Map k a -> Map k a

# Documentation

insertWith :: Ord k => (a -> a -> a) -> k -> a -> Map k a -> Map k aSource

findWithDefault :: Ord k => a -> k -> Map k a -> (a, Map k a)Source