Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Set a
- singleton :: PrimUnlifted a => a -> Set a
- member :: (PrimUnlifted a, Ord a) => a -> Set a -> Bool
- size :: PrimUnlifted a => Set a -> Int
Documentation
A set of elements.
(PrimUnlifted a, Ord a) => IsList (Set a) Source # | The functions that convert a list to a |
(PrimUnlifted a, Eq a) => Eq (Set a) Source # | |
(PrimUnlifted a, Ord a) => Ord (Set a) Source # | |
(PrimUnlifted a, Show a) => Show (Set a) Source # | |
(PrimUnlifted a, Ord a) => Semigroup (Set a) Source # | |
(PrimUnlifted a, Ord a) => Monoid (Set a) Source # | |
PrimUnlifted (Set a) Source # | |
type Item (Set a) Source # | |
singleton :: PrimUnlifted a => a -> Set a Source #
Construct a set with a single element.