intersects

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

Checks whether the range intersects the other one.