-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A data structure that associates each Int key with a set of values -- -- A data structure that associates each Int key with a set of values @package int-multimap @version 0.3 module IntMultimap -- | A multi map of integers to values a. data IntMultimap a empty :: IntMultimap a singleton :: (Hashable a) => Int -> a -> IntMultimap a toList :: IntMultimap a -> [(Int, a)] fromList :: (Eq a, Hashable a) => [(Int, a)] -> IntMultimap a map :: (Eq b, Hashable b) => (a -> b) -> IntMultimap a -> IntMultimap b null :: IntMultimap a -> Bool size :: IntMultimap a -> Int member :: Int -> IntMultimap a -> Bool delete :: (Hashable a, Eq a) => Int -> a -> IntMultimap a -> IntMultimap a insert :: (Hashable a, Eq a) => Int -> a -> IntMultimap a -> IntMultimap a elems :: IntMultimap a -> [a] keys :: IntMultimap a -> [Int] split :: Int -> IntMultimap a -> (IntMultimap a, IntMultimap a) splitLookup :: Int -> IntMultimap a -> (IntMultimap a, Maybe (HashSet a), IntMultimap a) instance GHC.Generics.Generic (IntMultimap.IntMultimap a) instance GHC.Show.Show a => GHC.Show.Show (IntMultimap.IntMultimap a) instance GHC.Classes.Eq a => GHC.Classes.Eq (IntMultimap.IntMultimap a) instance Data.Foldable.Foldable IntMultimap.IntMultimap instance (GHC.Classes.Eq a, Data.Hashable.Class.Hashable a) => GHC.Exts.IsList (IntMultimap.IntMultimap a)