Returns a promise which subscribes to given input and transforms incoming values using given transducer xform and reducer rfn.
xform
rfn
Once the input or the reducer is done, the promise will resolve with the final reduced result (or fail with error).
transduce( fromIterable(tx.range(10)), tx.map((x) => x * 10), tx.add() ).then((x) => console.log("result", x)) // result 450
-
Generated using TypeDoc
Returns a promise which subscribes to given input and transforms incoming values using given transducer
xform
and reducerrfn
.Once the input or the reducer is done, the promise will resolve with the final reduced result (or fail with error).
transduce( fromIterable(tx.range(10)), tx.map((x) => x * 10), tx.add() ).then((x) => console.log("result", x)) // result 450