ghc-6.12.3: The GHC APISource codeContentsIndex
UniqSet
Contents
Unique set type
Manipulating these sets
Synopsis
type UniqSet a = UniqFM a
mkUniqSet :: Uniquable a => [a] -> UniqSet a
uniqSetToList :: UniqSet a -> [a]
emptyUniqSet :: UniqSet a
unitUniqSet :: Uniquable a => a -> UniqSet a
addOneToUniqSet :: Uniquable a => UniqSet a -> a -> UniqSet a
addListToUniqSet :: Uniquable a => UniqSet a -> [a] -> UniqSet a
addOneToUniqSet_C :: Uniquable a => (a -> a -> a) -> UniqSet a -> a -> UniqSet a
delOneFromUniqSet :: Uniquable a => UniqSet a -> a -> UniqSet a
delListFromUniqSet :: Uniquable a => UniqSet a -> [a] -> UniqSet a
delOneFromUniqSet_Directly :: Uniquable a => UniqSet a -> Unique -> UniqSet a
unionUniqSets :: UniqSet a -> UniqSet a -> UniqSet a
unionManyUniqSets :: [UniqSet a] -> UniqSet a
minusUniqSet :: UniqSet a -> UniqSet a -> UniqSet a
elementOfUniqSet :: Uniquable a => a -> UniqSet a -> Bool
mapUniqSet :: (a -> b) -> UniqSet a -> UniqSet b
intersectUniqSets :: UniqSet a -> UniqSet a -> UniqSet a
isEmptyUniqSet :: UniqSet a -> Bool
filterUniqSet :: (a -> Bool) -> UniqSet a -> UniqSet a
sizeUniqSet :: UniqSet a -> Int
foldUniqSet :: (a -> b -> b) -> b -> UniqSet a -> b
elemUniqSet_Directly :: Unique -> UniqSet a -> Bool
lookupUniqSet :: Uniquable a => UniqSet a -> a -> Maybe a
hashUniqSet :: UniqSet a -> Int
Unique set type
type UniqSet a = UniqFM aSource
Manipulating these sets
mkUniqSet :: Uniquable a => [a] -> UniqSet aSource
uniqSetToList :: UniqSet a -> [a]Source
emptyUniqSet :: UniqSet aSource
unitUniqSet :: Uniquable a => a -> UniqSet aSource
addOneToUniqSet :: Uniquable a => UniqSet a -> a -> UniqSet aSource
addListToUniqSet :: Uniquable a => UniqSet a -> [a] -> UniqSet aSource
addOneToUniqSet_C :: Uniquable a => (a -> a -> a) -> UniqSet a -> a -> UniqSet aSource
delOneFromUniqSet :: Uniquable a => UniqSet a -> a -> UniqSet aSource
delListFromUniqSet :: Uniquable a => UniqSet a -> [a] -> UniqSet aSource
delOneFromUniqSet_Directly :: Uniquable a => UniqSet a -> Unique -> UniqSet aSource
unionUniqSets :: UniqSet a -> UniqSet a -> UniqSet aSource
unionManyUniqSets :: [UniqSet a] -> UniqSet aSource
minusUniqSet :: UniqSet a -> UniqSet a -> UniqSet aSource
elementOfUniqSet :: Uniquable a => a -> UniqSet a -> BoolSource
mapUniqSet :: (a -> b) -> UniqSet a -> UniqSet bSource
Invariant: the mapping function doesn't change the unique
intersectUniqSets :: UniqSet a -> UniqSet a -> UniqSet aSource
isEmptyUniqSet :: UniqSet a -> BoolSource
filterUniqSet :: (a -> Bool) -> UniqSet a -> UniqSet aSource
sizeUniqSet :: UniqSet a -> IntSource
foldUniqSet :: (a -> b -> b) -> b -> UniqSet a -> bSource
elemUniqSet_Directly :: Unique -> UniqSet a -> BoolSource
lookupUniqSet :: Uniquable a => UniqSet a -> a -> Maybe aSource
hashUniqSet :: UniqSet a -> IntSource
Produced by Haddock version 2.6.1