Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transformation context #27

Open
tchak opened this issue Nov 9, 2014 · 1 comment
Open

transformation context #27

tchak opened this issue Nov 9, 2014 · 1 comment

Comments

@tchak
Copy link

tchak commented Nov 9, 2014

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 ?

@jlongster
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants