Interval Set #
This file contains the definition of interval sets (IntervalSet),
a sorted set of non-overlapping intervals (Interval.nonOverlapping).
BoundedOrder is used to define negation of interval sets (IntervalSet.negate).
Nonempty intervals r1 and r2 are non overlapping when they are sorted and
they are not overlapping or adjacent, i.e. the difference of r2.fst and r1.snd
is greater than one. Intervals with a difference of one are canonicalized
to a new NonemptyInterval (IntervalSet.canonicalize).
Instances For
create intersection of intervals r1 and r2 if it exists.
Instances For
create interval between intervals r1 and r2.
Instances For
remove duplicate
Instances For
a list of intervals is non overlapping when intervals are sorted and no intervals are overlapping or adjacent
Instances For
an array of intervals is non overlapping when intervals.data is non overlapping
Instances For
last element of array intervals is non overlapping with NonemptyInterval next
Instances For
Accumulator for loop in canonicalize
- next : Option (NonemptyInterval Char)
- set : IntervalSet Char
- nonOverlapping : nonOverlappingWithLast self.set.intervals self.next
Instances For
Instances For
is next.fst equal to n.fst