Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Representation of
as a 4-element enum type.Set
Bool
All operations in constant time and space.
Mimics the interface of Set
.
Import as:
import qualified Agda.Utils.BoolSet as BoolSet
import Agda.Utils.BoolSet (BoolSet)
Synopsis
- data BoolSet
- (\\) :: BoolSet -> BoolSet -> BoolSet
- complement :: BoolSet -> BoolSet
- delete :: Bool -> BoolSet -> BoolSet
- difference :: BoolSet -> BoolSet -> BoolSet
- elems :: BoolSet -> [Bool]
- empty :: BoolSet
- fromList :: [Bool] -> BoolSet
- fromAscList :: [Bool] -> BoolSet
- fromDistinctAscList :: [Bool] -> BoolSet
- insert :: Bool -> BoolSet -> BoolSet
- intersection :: BoolSet -> BoolSet -> BoolSet
- isSubsetOf :: BoolSet -> BoolSet -> Bool
- lookupMin :: BoolSet -> Maybe Bool
- member :: Bool -> BoolSet -> Bool
- notMember :: Bool -> BoolSet -> Bool
- null :: BoolSet -> Bool
- singleton :: Bool -> BoolSet
- size :: BoolSet -> Int
- toList :: BoolSet -> [Bool]
- toAscList :: BoolSet -> [Bool]
- toSingleton :: BoolSet -> Maybe Bool
- total :: BoolSet
- union :: BoolSet -> BoolSet -> BoolSet
Documentation
Isomorphic to
.Set
Bool
complement :: BoolSet -> BoolSet Source #
fromAscList :: [Bool] -> BoolSet Source #
fromDistinctAscList :: [Bool] -> BoolSet Source #
isSubsetOf :: BoolSet -> BoolSet -> Bool Source #
toSingleton :: BoolSet -> Maybe Bool Source #
toSingleton s == Just b
iff s == singleton b
.