view

fun CharSequence.view(start: Int, end: Int = length): CharSequence

Return

a view over [start, end) of this sequence that shares its characters rather than copying them

Parameters

start

inclusive start index

end

exclusive end index, defaulting to the end of this sequence

See also