Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Synopsis
- insertE :: E -> RangeSet a -> RangeSet a
- deleteE :: E -> RangeSet a -> RangeSet a
- uncheckedSubsetOf :: RangeSet a -> RangeSet a -> Bool
- fromDistinctAscRangesSz :: SRangeList -> Int -> RangeSet a
- insertRangeE :: E -> E -> RangeSet a -> RangeSet a
- data RangeSet a
- type E = Int
- data SRangeList
- = SRangeCons !E !E !SRangeList
- | SNil
- data StrictMaybeE
- size :: RangeSet a -> Int
- height :: RangeSet a -> H
- foldE :: (E -> E -> b -> b -> b) -> b -> RangeSet a -> b
- module Data.RangeSet.Internal.Enum
- module Data.RangeSet.Internal.SmartConstructors
- module Data.RangeSet.Internal.Inserters
- module Data.RangeSet.Internal.Extractors
- module Data.RangeSet.Internal.Lumpers
- module Data.RangeSet.Internal.Splitters
- module Data.RangeSet.Internal.Heuristics
Documentation
fromDistinctAscRangesSz :: SRangeList -> Int -> RangeSet a Source #
A Set
type designed for types that are Enum
as well as Ord
. This allows the RangeSet
to
compress the data when it is contiguous, reducing memory-footprint and enabling otherwise impractical
operations like complement
for Bounded
types.
Since: 0.0.1.0
data SRangeList Source #
SRangeCons !E !E !SRangeList | |
SNil |
module Data.RangeSet.Internal.Enum