intersect

external fun intersect(other: TimeIntervalCollection, dataComparer: TimeInterval.DataComparer? = definedExternally, mergeCallback: TimeInterval.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.

See also