Get started

toPersistentHashSet

Returns a persistent set containing all elements from this iterable.

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

Order of the elements in the returned set is unspecified.


Returns a persistent set of all elements of this array.

Order of the elements in the returned set is unspecified.


Returns a persistent set of all elements of this sequence.

Order of the elements in the returned set is unspecified.


Returns a persistent set of all characters.

Order of the elements in the returned set is unspecified.