Package-level declarations

Types

Link copied to clipboard
value class BitSet32 : Set<Int>

Immutable Set implementation that can store values in range 0..31.

Link copied to clipboard
@RequiresOptIn(message = "This API is currently experimental. It may become incompatible or change without warnings in future versions.")
annotation class ExperimentalEnumSetApi
Link copied to clipboard

MutableSet implementation that can store values in range 0..31.

Functions

Link copied to clipboard
inline fun <E : Enum<E>> enumSetOf(elements: Iterable<E>): Set<E>
inline fun <E : Enum<E>> enumSetOf(vararg elements: E): Set<E>

Creates a Set optimized for storing elements of enumerations.

Link copied to clipboard
inline fun <E : Enum<E>> mutableEnumSetOf(elements: Iterable<E>): MutableSet<E>
inline fun <E : Enum<E>> mutableEnumSetOf(vararg elements: E): MutableSet<E>

Creates a MutableSet optimized for storing elements of enumerations.

Link copied to clipboard
inline fun <E : Enum<E>> Set<E>.toEnumSet(): Set<E>

Copies a regular Set into a set optimized for enumerations.

Link copied to clipboard
inline fun <E : Enum<E>> Set<E>.toMutableEnumSet(): MutableSet<E>

Copies a regular Set into a mutable set optimized for enumerations.