rangeset-0.1.0.0: Efficient sets for semi-contiguous data
Safe HaskellSafe
LanguageHaskell2010

Data.RangeSet.Builders

Synopsis

Documentation

fromRanges :: forall a. Enum a => [(a, a)] -> RangeSet a Source #

Constructs a RangeSet given a list of ranges.

Since: 0.0.1.0

fromDistinctAscRanges :: forall a. Enum a => [(a, a)] -> RangeSet a Source #

Constructs a RangeSet given a list of ranges that are in ascending order and do not overlap (this is unchecked).

Since: 0.0.1.0

insertRange :: Enum a => a -> a -> RangeSet a -> RangeSet a Source #

Inserts a range into a RangeSet.

Since: 0.0.1.0

fromList :: forall a. Enum a => [a] -> RangeSet a Source #

Builds a RangeSet from a given list of elements.

Since: 0.0.1.0

fromDistinctAscList :: forall a. Enum a => [a] -> RangeSet a Source #

Builds a RangeSet from a given list of elements that are in ascending order with no duplicates (this is unchecked).

Since: 0.0.1.0