Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- data MultiMap k v
- class (Eq a, Hashable a) => Insertable a
- empty :: MultiMap k v
- insert :: forall k v. (Insertable k, Insertable v) => k -> v -> MultiMap k v -> MultiMap k v
- member :: Insertable k => k -> MultiMap k a -> Bool
- lookup :: Insertable k => k -> MultiMap k v -> Maybe [v]
- delete :: Insertable k => k -> MultiMap k v -> Maybe ([v], MultiMap k v)
- filter :: forall k v. Insertable k => (v -> Bool) -> MultiMap k v -> MultiMap k v
- filterWithKey :: forall k v. Insertable k => (k -> v -> Bool) -> MultiMap k v -> MultiMap k v
- toList :: MultiMap k v -> [(k, v)]
Documentation
class (Eq a, Hashable a) => Insertable a Source #
Class of things that can be inserted in a map or
a set (of mapped values), for which instances of
Eq
and Hashable
must be present.
(Eq a, Hashable a) => Insertable a Source # | |
insert :: forall k v. (Insertable k, Insertable v) => k -> v -> MultiMap k v -> MultiMap k v Source #
filterWithKey :: forall k v. Insertable k => (k -> v -> Bool) -> MultiMap k v -> MultiMap k v Source #