isConnected

fun isConnected(other: Range<T>): Boolean

Returns true, if there exists a (possibly empty) range which is enclosed by both this range and other.

For example, [1, 3) and 4, 5 are not connected [1, 3) and 2, 5 are connected [1, 3) and 3, 5 are connected

Return

true, if this and other range is connected

Parameters

other

other range