span

fun span(other: Range<T>): Range<T>

Returns the minimal range that encloses this and the other range. For example, the span of [1, 3) and 5, 7 is 1, 7.

Return

range that encloses this and the other range

Parameters

other

other range