and

@RequiresApi(value = 21)
infix inline fun <T : Comparable<T>> Range<T>.and(other: Range<T>): Range<T>(source)

Return the intersection of this range and other.

Throws

if this is disjoint from other.