MutableSet

@Serializable(with = MutableSetSerializer::class)
interface MutableSet<E> : Set<E> , MutableSet<E> , MutableCollection<E>

Functions

Link copied to clipboard
abstract override fun add(element: E): Boolean
Link copied to clipboard
abstract override fun addAll(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 override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator fun iterator(): Iterator<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 override fun retainAll(elements: Collection<E>): Boolean
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