to Navigable Set
fun <T> Iterable<T>.toNavigableSet(comparator: Comparator<in T>): NavigableSet<T>
Content copied to clipboard
Returns a NavigableSet of all elements.
Elements in the set returned are sorted according to the given comparator.