withEnd

open fun withEnd(end: Position): Range(source)

Return

A copy of this `Range` object, but with the end position replaced with the given position.

Parameters

end

The value used to replace the current end position.