Add basic arithmetic to Math
anguscroll at gmail.com
Sun Jun 10 11:48:06 PDT 2012
hamstrung by the lack of native basic arithmetic functions.
Would be handy/elegant/instructive to be able to write
Moreover having functional versions of arithmetic operators would improve
the currying/partial/composition experience.
1. Arrow functions work pretty well too:
2. If add and multiply accepted multiple args, reduce would not be
necessary for these cases:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss