toNavigableSet

fun <T> Iterable<T>.toNavigableSet(comparator: Comparator<in T>): NavigableSet<T>

Returns a NavigableSet of all elements.

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

Sources

Katlib source
Link copied to clipboard