intersection

fun intersection(connectedRange: Range<T>): Range<T>

Returns the intersecting range of this range with the other connectedRange.

Return

intersecting range

Parameters

connectedRange

range that must be connected to this range