Returns the source as a set.
Type of items in the source.
Collector that returns the source as a set.
const result = toSet<number>()([1, 2, 3]);console.log(result); // Set { 1, 2, 3 } Copy
const result = toSet<number>()([1, 2, 3]);console.log(result); // Set { 1, 2, 3 }
Returns the source as a set.