hydrogen-multimap-0.3: Hydrogen Multimap
Hydrogen.MultiMap
data MultiMap k v Source
Instances
empty :: MultiMap k v Source
null :: MultiMap k v -> Bool Source
keys :: MultiMap k v -> [k] Source
elems :: MultiMap k v -> [[v]] Source
numKeys :: MultiMap k v -> Int Source
numElems :: MultiMap k v -> Int Source
lookup :: Ord k => k -> MultiMap k v -> [v] Source
member :: Ord k => k -> MultiMap k v -> Bool Source
insert :: Ord k => k -> v -> MultiMap k v -> MultiMap k v Source
delete :: Ord k => k -> MultiMap k v -> MultiMap k v Source
update :: Ord k => k -> [v] -> MultiMap k v -> MultiMap k v Source
adjust :: Ord k => ([v] -> [v]) -> k -> MultiMap k v -> MultiMap k v Source
toMap :: MultiMap k v -> Map k [v] Source
fromMap :: Map k [v] -> MultiMap k v Source
fromList :: Ord k => [(k, [v])] -> MultiMap k v Source
fromList' :: Ord k => [(k, v)] -> MultiMap k v Source
fromSet :: forall k v. Ord k => (k -> [v]) -> Set k -> MultiMap k v Source
toList :: MultiMap k v -> [(k, [v])] Source
toList' :: MultiMap k v -> [(k, v)] Source
union :: Ord k => MultiMap k v -> MultiMap k v -> MultiMap k v Source