subList

abstract fun subList(fromIndex: Int, toIndex: Int): List<TextElement>(source)

Returns a sublist view [fromIndex, toIndex). The returned list is backed by this sequence, so changes affect both.

Return

a sublist view

Parameters

fromIndex

low endpoint (inclusive)

toIndex

high endpoint (exclusive)

Throws

if indices are out of range