offset

fun IntRange.offset(offset: Int): IntRange

Returns a new IntRange with the specified offset added to both the start and end of the range.

Return

a new IntRange with the offset applied

Parameters

offset

the amount to offset the range by