Copyright | (c) 2011-2013 Michal Terepeta |
---|---|
License | BSD3 |
Maintainer | michal.terepeta@gmail.com |
Stability | alpha |
Portability | uses DeriveDataTypeable and GeneralizedNewtypeDeriving |
Safe Haskell | None |
Language | Haskell98 |
- data EnumSet k
- intSetToEnumSet :: IntSet -> EnumSet k
- enumSetToIntSet :: EnumSet k -> IntSet
- (\\) :: EnumSet k -> EnumSet k -> EnumSet k
- null :: EnumSet k -> Bool
- size :: EnumSet k -> Int
- member :: Enum k => k -> EnumSet k -> Bool
- notMember :: Enum k => k -> EnumSet k -> Bool
- lookupLT :: Enum k => k -> EnumSet k -> Maybe k
- lookupGT :: Enum k => k -> EnumSet k -> Maybe k
- lookupLE :: Enum k => k -> EnumSet k -> Maybe k
- lookupGE :: Enum k => k -> EnumSet k -> Maybe k
- isSubsetOf :: EnumSet k -> EnumSet k -> Bool
- isProperSubsetOf :: EnumSet k -> EnumSet k -> Bool
- empty :: EnumSet k
- singleton :: Enum k => k -> EnumSet k
- insert :: Enum k => k -> EnumSet k -> EnumSet k
- delete :: Enum k => k -> EnumSet k -> EnumSet k
- union :: EnumSet k -> EnumSet k -> EnumSet k
- unions :: [EnumSet k] -> EnumSet k
- difference :: EnumSet k -> EnumSet k -> EnumSet k
- intersection :: EnumSet k -> EnumSet k -> EnumSet k
- filter :: Enum k => (k -> Bool) -> EnumSet k -> EnumSet k
- partition :: Enum k => (k -> Bool) -> EnumSet k -> (EnumSet k, EnumSet k)
- split :: Enum k => k -> EnumSet k -> (EnumSet k, EnumSet k)
- splitMember :: Enum k => k -> EnumSet k -> (EnumSet k, Bool, EnumSet k)
- map :: Enum k => (k -> k) -> EnumSet k -> EnumSet k
- foldr :: Enum k => (k -> b -> b) -> b -> EnumSet k -> b
- foldl :: Enum k => (a -> k -> a) -> a -> EnumSet k -> a
- foldr' :: Enum k => (k -> b -> b) -> b -> EnumSet k -> b
- foldl' :: Enum k => (a -> k -> a) -> a -> EnumSet k -> a
- fold :: Enum k => (k -> b -> b) -> b -> EnumSet k -> b
- findMin :: Enum k => EnumSet k -> k
- findMax :: Enum k => EnumSet k -> k
- deleteMin :: EnumSet k -> EnumSet k
- deleteMax :: EnumSet k -> EnumSet k
- deleteFindMin :: Enum k => EnumSet k -> (k, EnumSet k)
- deleteFindMax :: Enum k => EnumSet k -> (k, EnumSet k)
- maxView :: Enum k => EnumSet k -> Maybe (k, EnumSet k)
- minView :: Enum k => EnumSet k -> Maybe (k, EnumSet k)
- elems :: Enum k => EnumSet k -> [k]
- toList :: Enum k => EnumSet k -> [k]
- fromList :: Enum k => [k] -> EnumSet k
- toAscList :: Enum k => EnumSet k -> [k]
- toDescList :: Enum k => EnumSet k -> [k]
- fromAscList :: Enum k => [k] -> EnumSet k
- fromDistinctAscList :: Enum k => [k] -> EnumSet k
Documentation
Wrapping/unwrapping
intSetToEnumSet :: IntSet -> EnumSet k Source
Wrap IntSet
.
enumSetToIntSet :: EnumSet k -> IntSet Source
Unwrap IntSet
.
Operators
Query
isSubsetOf :: EnumSet k -> EnumSet k -> Bool Source
isProperSubsetOf :: EnumSet k -> EnumSet k -> Bool Source
Construction
Combine
difference :: EnumSet k -> EnumSet k -> EnumSet k Source
intersection :: EnumSet k -> EnumSet k -> EnumSet k Source
Filter
Map
Folds
Strict folds
Legacy folds
Min/Max
deleteFindMin :: Enum k => EnumSet k -> (k, EnumSet k) Source
deleteFindMax :: Enum k => EnumSet k -> (k, EnumSet k) Source
Conversion
List
Ordered list
toDescList :: Enum k => EnumSet k -> [k] Source
fromAscList :: Enum k => [k] -> EnumSet k Source
fromDistinctAscList :: Enum k => [k] -> EnumSet k Source