List

@Serializable(with = ListSerializer::class)
interface List<out E> : Collection<E> , List<E>

Inheritors

Functions

Link copied to clipboard
abstract fun <K2, V2> associate(transformer: (E) -> MapEntry<K2, V2>): Map<K2, V2>
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: @UnsafeVariance 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: @UnsafeVariance 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 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