Returns an empty read-only set. The returned set is serializable (JVM).
Since Kotlin
1.0Samples
import kotlin.math.*
import kotlin.test.*
fun main() {
val set = setOf<String>()
println("set.isEmpty() is ${set.isEmpty()}")
val other: Set<Int> = emptySet()
println("set == other is ${set == other}")
println(set)
}
Target: JVMRunning on v.2.1.20