set

fun set(lower: Int, upper: Int): Range

Sets this range to the specified lower bound and upper bound.

Return

this range set to the specified values

Parameters

lower

the new lower bound, inclusive

upper

the new upper bound, inclusive