PlatformSet

expect class PlatformSet<E>
actual value class PlatformSet<E>
actual typealias PlatformSet = JsSet<E>
actual typealias PlatformSet = LinkedHashSet<E>

Constructors

Link copied to clipboard
expect fun PlatformSet()
actual fun PlatformSet()

Properties

Link copied to clipboard
val storage: NSMutableSet

Extensions

Link copied to clipboard
expect fun <E> PlatformSet<E>.add(item: E)
actual inline fun <E> PlatformSet<E>.add(item: E)
Link copied to clipboard
Link copied to clipboard
inline fun <E> PlatformSet<E>.asSet(): Set<E>
Link copied to clipboard
expect fun <E> PlatformSet<E>.clear()
actual inline fun <E> PlatformSet<E>.clear()
Link copied to clipboard
expect operator fun <E> PlatformSet<E>.contains(item: E): Boolean
actual inline operator fun <E> PlatformSet<E>.contains(item: E): Boolean
Link copied to clipboard
expect fun <E> PlatformSet<E>.isEmpty(): Boolean
actual inline fun <E> PlatformSet<E>.isEmpty(): Boolean
Link copied to clipboard
inline fun <E> PlatformSet<E>.isNotEmpty(): Boolean
Link copied to clipboard
expect fun <E> PlatformSet<E>.remove(item: E)
actual inline fun <E> PlatformSet<E>.remove(item: E)
Link copied to clipboard
expect val <E> PlatformSet<E>.size: Int
actual val <E> PlatformSet<E>.size: Int
Link copied to clipboard
actual inline fun <E> PlatformSet<E>.toMutableSet(): MutableSet<E>
Link copied to clipboard
inline fun <E> PlatformSet<E>.toSet(): Set<E>