A finite ordered list of Interval buckets.
Use BoundedSequence when you already have an explicit interval list, or use
Sequence.bounded(...) to realize a finite run from an unbounded grid definition.
Constructor
new BoundedSequence(intervals: readonly Interval[])
new BoundedSequence([intervalA, intervalB])Creates a finite interval sequence from an explicit list.
Properties
Methods
at
at(index: number): Interval | undefined
bounded.at(0)Returns the interval at the supplied position, if present.
first
first(): Interval | undefined
bounded.first()Returns the first interval, if present.
intervals
intervals(): readonly Interval[]
bounded.intervals()Returns the finite explicit intervals represented by this bounded sequence.
last
last(): Interval | undefined
bounded.last()Returns the last interval, if present.
slice
slice(beginIndex?: number, endIndex?: number): BoundedSequence
bounded.slice(0, 10)Returns a positional half-open slice of the bounded sequence.
timeRange
timeRange(): TimeRange | undefined
bounded.timeRange()Returns the finite temporal extent of this bounded sequence, if any.