AbstractPersistentList

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun addAll(elements: Collection<E>): PersistentList<E>

Returns the result of appending all elements of the specified elements collection to this list.

open override fun addAll(index: Int, c: Collection<E>): PersistentList<E>

Returns the result of inserting the specified c collection at the specified index.

Link copied to clipboard
open override fun clear(): PersistentList<E>

Returns an empty persistent list.

Link copied to clipboard
open operator override fun contains(element: E): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<E>): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<E>
Link copied to clipboard
open override fun listIterator(): ListIterator<E>
Link copied to clipboard
open override fun remove(element: E): PersistentList<E>

Returns the result of removing the first appearance of the specified element from this list.

Link copied to clipboard
open override fun removeAll(elements: Collection<E>): PersistentList<E>

Returns the result of removing all elements in this list that are also contained in the specified elements collection.

Link copied to clipboard
open override fun retainAll(elements: Collection<E>): PersistentList<E>

Returns all elements in this list that are also contained in the specified elements collection.

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).