fun <T : Comparable<T>> Array<out T>.toSortedSet(): SortedSet<T>
Platform and version requirements: JVM
fun ByteArray.toSortedSet(): SortedSet<Byte>
Platform and version requirements: JVM
fun ShortArray.toSortedSet(): SortedSet<Short>
Platform and version requirements: JVM
fun IntArray.toSortedSet(): SortedSet<Int>
Platform and version requirements: JVM
fun LongArray.toSortedSet(): SortedSet<Long>
Platform and version requirements: JVM
fun FloatArray.toSortedSet(): SortedSet<Float>
Platform and version requirements: JVM
fun DoubleArray.toSortedSet(): SortedSet<Double>
Platform and version requirements: JVM
fun BooleanArray.toSortedSet(): SortedSet<Boolean>
Platform and version requirements: JVM
fun CharArray.toSortedSet(): SortedSet<Char>
Platform and version requirements: JVM
fun <T : Comparable<T>> Iterable<T>.toSortedSet(): SortedSet<T>
Platform and version requirements: JVM
Returns a SortedSet of all elements.
fun <T> Array<out T>.toSortedSet( comparator: Comparator<in T> ): SortedSet<T>
Platform and version requirements: JVM
fun <T> Iterable<T>.toSortedSet( comparator: Comparator<in T> ): SortedSet<T>
Platform and version requirements: JVM
Returns a SortedSet of all elements.
Elements in the set returned are sorted according to the given comparator.
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/to-sorted-set.html