kotlin.collections.setOf
setOf
fun <T> setOf(vararg elements: T): Set<T>
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).
inline fun <T> setOf(): Set<T>
Returns an empty read-only set. The returned set is serializable (JVM).
fun <T> setOf(element: T): Set<T>
Returns an immutable set containing only the specified object 登录查看完整内容