Transducers are all about compose and reuse :) The fact that we have to define context on the transform makes them less reusable. Could we find a way to execute a composition of transforms with a given context ? Like a ctx argument on transduce method ?
The ctx variable in each transform is mostly there when you use the transforms directly like map([1, 2, 3], function() {}, context). You are right that transduce should take a context.
Transducers are all about compose and reuse :) The fact that we have to define context on the transform makes them less reusable. Could we find a way to execute a composition of transforms with a given context ? Like a ctx argument on
transduce
method ?