setOf
Returns a new read-only set with the given elements. Elements of the set are iterated in the order they were specified. The returned set is serializable (JVM).
Since Kotlin
1.0Samples
Returns an empty read-only set. The returned set is serializable (JVM).
Since Kotlin
1.0Samples
Returns a new read-only set containing only the specified object element.
The returned set is serializable (JVM).
Since Kotlin
1.9Samples
Returns a new read-only set containing only the specified object element.
The returned set is serializable.