primitive-containers-0.3.1: containers backed by arrays
Data.Diet.Unbounded.Set.Lifted
data Set a Source #
Defined in Data.Diet.Unbounded.Set.Lifted
Methods
(==) :: Set a -> Set a -> Bool #
(/=) :: Set a -> Set a -> Bool #
showsPrec :: Int -> Set a -> ShowS #
show :: Set a -> String #
showList :: [Set a] -> ShowS #
(<>) :: Set a -> Set a -> Set a #
sconcat :: NonEmpty (Set a) -> Set a #
stimes :: Integral b => b -> Set a -> Set a #
mempty :: Set a #
mappend :: Set a -> Set a -> Set a #
mconcat :: [Set a] -> Set a #
singleton Source #
Arguments
lower inclusive bound, Nothing means -∞
Nothing
-∞
upper inclusive bound, Nothing means +∞
+∞
O(1) Create an unbounded diet set with a single element.
member :: Ord a => a -> Set a -> Bool Source #
O(log n) Returns True if the element is a member of the diet set.
True