timemap-0.0.7

Safe HaskellSafe
LanguageHaskell2010

Data.TimeMap.Internal

Synopsis

Documentation

type MultiMap k a = Map k (HashSet a) Source #

insert :: (Ord k, Hashable a, Eq a) => k -> a -> MultiMap k a -> MultiMap k a Source #

lookup :: Ord k => k -> MultiMap k a -> HashSet a Source #

delete :: Ord k => k -> MultiMap k a -> MultiMap k a Source #

Deletes all elements at k

remove :: (Ord k, Hashable a, Eq a) => k -> a -> MultiMap k a -> MultiMap k a Source #

Deletes only the element a from the referenced key k

elems :: (Hashable a, Eq a) => MultiMap k a -> HashSet a Source #

toList :: (Hashable a, Eq a) => MultiMap k a -> [(k, a)] Source #