toSortedSet

Return a SortedSet containing all the elements of this sequence.

The operation is terminal.


Return a SortedSet containing all the elements of this sequence.

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

The operation is terminal.