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
- init :: Ord k => Map k a -> Map k a

# Documentation

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