Returns a collector that returns a Set from an Iterable.
Type of items in the source.
Collector that returns a Set from an Iterable.
const result = toSetAsync()([1, 2, 3]);console.log(result); // Set {1, 2, 3} Copy
const result = toSetAsync()([1, 2, 3]);console.log(result); // Set {1, 2, 3}
Returns a collector that returns a Set from an Iterable.