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

Transducer init and result optional #50

Open
kevinbeaty opened this issue Apr 15, 2015 · 1 comment
Open

Transducer init and result optional #50

kevinbeaty opened this issue Apr 15, 2015 · 1 comment

Comments

@kevinbeaty
Copy link
Member

Consider making @@transducer/init and @@transducer/result optional when passed an external transformer in into, transduce, etc. tResult could be identity by default, tInit could return new this.constructor().

@kevinbeaty
Copy link
Member Author

tInit could return new this.constructor().

Although this would only work if tInit was defined on the prototype, in which case arguably return this would be a better default per discussion in #49 (ie. should [tInit]() return an empty object or equivalent object)

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

1 participant