toSortedSet

open fun <T> toSortedSet(items: Array<T>): SortedSet<T>

Wraps the given items in a mutable sorted set.


open fun <T> toSortedSet(comp: Comparator<T>, items: Array<T>): SortedSet<T>

Wraps the given items in a mutable sorted set using the given comparator.