of

fun of(base: CharSequence, start: Int, end: Int): CharSequenceView

Creates a view over [start, end) of base, flattening it when base is itself a view.

Throws

if the range does not fit in base