Safe Haskell | None |
---|---|
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]
- 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
member :: Insertable k => k -> MultiMap k a -> Bool Source
lookup :: Insertable k => k -> MultiMap k v -> Maybe [v] Source
filterWithKey :: forall k v. Insertable k => (k -> v -> Bool) -> MultiMap k v -> MultiMap k v Source