Transducer which only yields the first n values and then terminates transformation (by emitting a reduced value).
n
[...iterator(comp(take(5), map((x) => x * 10)), range(10))] // [ 0, 10, 20, 30, 40 ]
-
Generated using TypeDoc
Transducer which only yields the first
n
values and then terminates transformation (by emitting a reduced value).[...iterator(comp(take(5), map((x) => x * 10)), range(10))] // [ 0, 10, 20, 30, 40 ]