intersects

fun <T : Comparable<T>> ClosedRange<T>.intersects(other: ClosedRange<T>): Boolean

Returns true when there is at least one element x for which x in this and x in other returns true.

Sources

Katlib source
Link copied to clipboard