Get started

toPersistentSet

Returns a persistent set of all elements of this iterable.

If the receiver is already a persistent set, returns it as is. If the receiver is a persistent set builder, calls build on it and returns the result.

Elements of the returned set are iterated in the same order as in this iterable.


Returns a persistent set of all elements of this array.

Elements of the returned set are iterated in the same order as in this array.


Returns a persistent set of all elements of this sequence.

Elements of the returned set are iterated in the same order as in this sequence.


Returns a persistent set of all characters.

Elements of the returned set are iterated in the same order as in this char sequence.