W3cubDocs

/Kotlin

linkedSetOf

inline fun <T> linkedSetOf(): LinkedHashSet<T>

Platform and version requirements: Kotlin 1.1

Returns an empty new LinkedHashSet.

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–2017 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