A range set stores a collection of Ranges in a way that makes them efficient to map and update. This is an immutable data structure.
True when this is the empty range set.
The number of ranges in the set.
Return a Sequence of all Ranges in this set, in order.
Iterate over the ranges that touch the region from to to, calling f for each. When the callback returns false, iteration stops.
false
Return a new RangeSet containing only the ranges that match predicate.
Iterate over all ranges in this set in order, calling action for each.
Iterate over the ranges in this set, in order, including all ranges that end at or after from.
Map this range set through a set of changes.
Update the range set, optionally adding new ranges or filtering out existing ones.