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
Adding syntactic sugar to reduce #388
Conversation
We handle callback sugar through |
Even if Also, apologies for the failing travis build. I was just testing by running |
Yap, but that's why it exists :) |
Would you be amenable to a PR changing |
Not at the moment, I've made it customizable/wrapper for these kinds of things. Though I will make |
Ok, sounds good. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR enables the following two syntaxes:
and
If you like them, I'll also add them to
reduceRight
. Tests and documentation are included. I can break these out into two separate PRs if you prefer. I tried to follow the existing style conventions but let me know if I can make anything look nicer. I wasn't quite sure where the utility methods should live, so I opted for "as close as possible to where they are used".