truncateList
fun <I : IntervalLike<I>> truncateList(list: List<I>, opts: CollectOptions, exploitSorted: Boolean, isSerial: Boolean): List<I>
Eagerly truncates a list of timeline objects to known bounds.
exploitSorted
and isSerial
exist to provide extra information about the list, for performance optimization.
Parameters
list
The list of IntervalLike objects to be sorted.
opts
Collect options, specifies the truncation bounds and behavior.
exploitSorted
Whether the start times of the intervals are sorted.
isSerial
Whether the list is "serial", i.e. sorted by start time AND non-overlapping.