Get started

ImmutableList

A generic immutable ordered collection of elements. Methods in this interface support only read-only access to the immutable list.

Modification operations are supported through the PersistentList interface.

Implementors of this interface take responsibility to be immutable. Once constructed they must contain the same elements in the same order.

Type Parameters

E

the type of elements contained in the list. The immutable list is covariant on its element type.

Inheritors

Functions

Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): ImmutableList<E>

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