intersect
infix fun <T : Comparable<T>> ClosedRange<T>.intersect(other: ClosedRange<T>): ClosedRange<T>(source)
Return
a range representing the intersection of this one with other. The result may be an empty range if there is no overlap
Parameters
other
range to test with