Closed RobinMalfait closed 1 year ago
This PR adds a new toSet feature.
toSet
Similar to the toArray feature, this one will create a new Set instead of an Array.
toArray
Set
Array
import { pipe, range, toSet } from 'lazy-collections' let program = pipe(range(0, 10), toSet()) program() // Set (11) { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
This PR adds a new
toSet
feature.Similar to the
toArray
feature, this one will create a newSet
instead of anArray
.