contains

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

Checks whether the range contains the other one. This method is faster than checking if the range contains both of the endpoints of other.