setOf

fun <T> setOf(element: T): Set<T>(source)

Returns an immutable set containing only the specified object element. The returned set is serializable.

Since Kotlin

1.0
fun <T> setOf(element: T): Set<T>(source)

Returns an immutable set containing only the specified object element.

Since Kotlin

1.1