SelfRepresentingSingletonSet

Deprecated (with error)

SelfRepresentingSingletonSet is an incorrect set implementation that breaks set invariants

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
inline fun <K, V : Any> Iterable<K>.associateWithNotNull(valueSelector: (K) -> V?): Map<K, V>
Link copied to clipboard
Link copied to clipboard
open operator override fun contains(element: T): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
inline fun <T : Any> Iterable<*>.firstIsInstanceOrNull(): T?

This utility method was previously imported from org.jetbrains.kotlin.utils.addToStdlib, and there were a lot of usages. Since no replacement exists in stdlib, it was implemented locally for convenience.

Link copied to clipboard
open fun forEach(p0: Consumer<in T>)
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<T>
Link copied to clipboard
inline suspend fun <A> Iterable<A>.parallelForEach(crossinline f: suspend (A) -> Unit)
Link copied to clipboard
inline suspend fun <A, B> Iterable<A>.parallelMap(crossinline f: suspend (A) -> B): List<B>
Link copied to clipboard
inline suspend fun <A, B> Iterable<A>.parallelMapNotNull(crossinline f: suspend (A) -> B?): List<B>
Link copied to clipboard
open fun parallelStream(): Stream<T>
Link copied to clipboard
open override fun spliterator(): Spliterator<T>
Link copied to clipboard
open fun stream(): Stream<T>
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>