int-like-0.3.1: Newtype wrappers over IntSet and IntMap
Safe HaskellNone
LanguageHaskell2010

IntLike.Set

Synopsis

Set type

newtype IntLikeSet x Source #

Constructors

IntLikeSet 

Fields

Instances

Instances details
Monoid (IntLikeSet x) Source # 
Instance details

Defined in IntLike.Set

Semigroup (IntLikeSet x) Source # 
Instance details

Defined in IntLike.Set

Show (IntLikeSet x) Source # 
Instance details

Defined in IntLike.Set

NFData (IntLikeSet x) Source # 
Instance details

Defined in IntLike.Set

Methods

rnf :: IntLikeSet x -> () #

Eq (IntLikeSet x) Source # 
Instance details

Defined in IntLike.Set

Methods

(==) :: IntLikeSet x -> IntLikeSet x -> Bool #

(/=) :: IntLikeSet x -> IntLikeSet x -> Bool #

Ord (IntLikeSet x) Source # 
Instance details

Defined in IntLike.Set

Construction

Insertion

Deletion

Generalized insertion/deletion

alterF :: (Coercible x Int, forall v u. Coercible v u => Coercible (f v) (f u), Functor f) => (Bool -> f Bool) -> x -> IntLikeSet x -> f (IntLikeSet x) Source #

Query

Combine

unions :: forall x f. (forall v u. Coercible v u => Coercible (f v) (f u), Foldable f) => f (IntLikeSet x) -> IntLikeSet x Source #

Filter

Map

map :: (Coercible x Int, Coercible y Int) => (x -> y) -> IntLikeSet x -> IntLikeSet y Source #

Folds

foldr :: Coercible x Int => (x -> b -> b) -> b -> IntLikeSet x -> b Source #

foldl :: Coercible x Int => (a -> x -> a) -> a -> IntLikeSet x -> a Source #

Strict folds

foldr' :: Coercible x Int => (x -> b -> b) -> b -> IntLikeSet x -> b Source #

foldl' :: Coercible x Int => (a -> x -> a) -> a -> IntLikeSet x -> a Source #

Legacy folds

fold :: Coercible x Int => (x -> b -> b) -> b -> IntLikeSet x -> b Source #

Min/Max

Conversion

List

Extra

insertState :: Coercible x Int => (Bool -> b) -> x -> IntLikeSet x -> (b, IntLikeSet x) Source #