toSet abstract method

Set<T> toSet()

Returns a Set containing the elements of this stream.

Example

final set = GenericStream.of([1, 2, 2, 3, 3]).toSet();

Implementation

Set<T> toSet();