toSortedSet

fun <T : Comparable<T>> Array<out T>.toSortedSet(): SortedSet<T> (source)

Platform and version requirements: JVM

fun ByteArray.toSortedSet(): SortedSet<Byte> (source)

Platform and version requirements: JVM

fun ShortArray.toSortedSet(): SortedSet<Short> (source)

Platform and version requirements: JVM

fun IntArray.toSortedSet(): SortedSet<Int> (source)

Platform and version requirements: JVM

fun LongArray.toSortedSet(): SortedSet<Long> (source)

Platform and version requirements: JVM

fun FloatArray.toSortedSet(): SortedSet<Float> (source)

Platform and version requirements: JVM

fun DoubleArray.toSortedSet(): SortedSet<Double> (source)

Platform and version requirements: JVM

fun BooleanArray.toSortedSet(): SortedSet<Boolean> (source)

Platform and version requirements: JVM

fun CharArray.toSortedSet(): SortedSet<Char> (source)

Platform and version requirements: JVM

fun <T : Comparable<T>> Iterable<T>.toSortedSet(): SortedSet<T> (source)

Platform and version requirements: JVM

Returns a SortedSet of all elements.

fun <T> Array<out T>.toSortedSet(
    comparator: Comparator<in T>
): SortedSet<T>
(source)

Platform and version requirements: JVM

fun <T> Iterable<T>.toSortedSet(
    comparator: Comparator<in T>
): SortedSet<T>
(source)

Platform and version requirements: JVM

Returns a SortedSet of all elements.

Elements in the set returned are sorted according to the given comparator.