W3cubDocs

/Kotlin

linkedSetOf

Platform and version requirements: JVM (1.1), JS (1.1), Native (1.1)
fun <T> linkedSetOf(): LinkedHashSet<T>

Returns an empty new LinkedHashSet.

Platform and version requirements: JVM (1.0), JS (1.0), Native (1.0)
fun <T> linkedSetOf(vararg elements: T): LinkedHashSet<T>

Returns a new LinkedHashSet with the given elements. Elements of the set are iterated in the order they were specified.

© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/linked-set-of.html