intersect
fun intersect(other: TimeIntervalCollection, dataComparer: DataComparer? = definedExternally, mergeCallback: MergeCallback? = definedExternally): TimeIntervalCollection(source)
Creates a new instance that is the intersection of this collection and the provided collection.
Return
A new TimeIntervalCollection which is the intersection of this collection and the provided collection.
Parameters
other
The collection to intersect with.
dataComparer
A function which compares the data of the two intervals. If omitted, reference equality is used.
mergeCallback
A function which merges the data of the two intervals. If omitted, the data from the left interval will be used.