You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
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 ?The text was updated successfully, but these errors were encountered: