hydrogen-multimap-0.3: Hydrogen Multimap

Safe HaskellSafe-Inferred
LanguageHaskell2010

Hydrogen.MultiMap

Documentation

data MultiMap k v Source

Instances

Functor (MultiMap k) 
Foldable (MultiMap k) 
Traversable (MultiMap k) 
(Eq k, Eq v) => Eq (MultiMap k v) 
(Ord k, Ord v) => Ord (MultiMap k v) 
(Show k, Show v) => Show (MultiMap k v) 
Generic (MultiMap k v) 
Typeable (* -> * -> *) MultiMap 
type Rep (MultiMap k v) 

keys :: MultiMap k v -> [k] Source

elems :: MultiMap k v -> [[v]] 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