subList

expect open override fun subList(fromIndex: Int, toIndex: Int): MutableList<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, so non-structural changes in the returned list are reflected in this list, and vice-versa.

Structural changes in the base list make the behavior of the view undefined.

Since Kotlin

1.0
actual open override fun subList(fromIndex: Int, toIndex: Int): MutableList<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, so non-structural changes in the returned list are reflected in this list, and vice-versa.

Structural changes in the base list make the behavior of the view undefined.

Since Kotlin

1.3