MutableList

@Serializable(with = MutableListSerializer::class)
interface MutableList<E> : List<E> , MutableList<E> , MutableCollection<E>

Inheritors

Functions

Link copied to clipboard
abstract override fun add(element: E): Boolean
abstract fun add(index: Int, element: E)
Link copied to clipboard
abstract override fun addAll(elements: Collection<E>): Boolean
abstract fun addAll(index: Int, elements: Collection<E>): Boolean
Link copied to clipboard
abstract fun <K2, V2> associate(transformer: (E) -> MapEntry<K2, V2>): Map<K2, V2>
Link copied to clipboard
abstract override fun clear()
Link copied to clipboard
abstract operator override fun contains(element: E): Boolean
Link copied to clipboard
abstract fun containsAll(elements: Collection<E>): Boolean
Link copied to clipboard
abstract fun filter(predicate: (E) -> Boolean): List<E>
Link copied to clipboard
abstract fun first(): E
Link copied to clipboard
abstract fun firstOrNull(): E?
Link copied to clipboard
abstract fun forEach(lambda: (item: E) -> Unit)
Link copied to clipboard
abstract fun forEachWithIndex(lambda: (item: E, index: Int) -> Unit)
Link copied to clipboard
abstract operator override fun get(index: Int): E
Link copied to clipboard
abstract override fun indexOf(element: E): Int
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator fun iterator(): Iterator<E>
Link copied to clipboard
abstract override fun lastIndexOf(element: E): Int
Link copied to clipboard
abstract fun listIterator(): ListIterator<E>
abstract fun listIterator(index: Int): ListIterator<E>
Link copied to clipboard
abstract fun <R> map(transform: (item: E) -> R): List<R>
Link copied to clipboard
abstract fun <R> mapToArray(transform: (item: E) -> R): Array<R>
Link copied to clipboard
abstract fun <R> mapToArrayWithIndex(transform: (item: E, index: Int) -> R): Array<R>
Link copied to clipboard
abstract fun <R> mapWithIndex(transform: (item: E, index: Int) -> R): List<R>
Link copied to clipboard
abstract override fun remove(element: E): Boolean
Link copied to clipboard
abstract override fun removeAll(elements: Collection<E>): Boolean
Link copied to clipboard
abstract fun removeAt(index: Int): E
Link copied to clipboard
abstract override fun retainAll(elements: Collection<E>): Boolean
Link copied to clipboard
abstract operator fun set(index: Int, element: E): E
Link copied to clipboard
abstract fun subList(fromIndex: Int, toIndex: Int): List<E>
Link copied to clipboard
inline fun <E> Collection<E>.toIList(): List<E>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <E> Collection<E>.toISet(): Set<E>

Properties

Link copied to clipboard
abstract override val size: Int