subList

open override fun subList(fromIndex: Int, toIndex: Int): ImmutableList<E>(source)

Returns a view of the portion of this list between the specified fromIndex (inclusive) and toIndex (exclusive).

The returned list is backed by this list.

Throws

if fromIndex is less than zero or toIndex is greater than the size of this list.