jeremy.darling at gmail.com
Thu Oct 15 20:00:03 UTC 2015
If I understand your question correctly, your asking if fat arrow functions
could be auto curried? I think this would be great, but anything using
...rest arguments could never be curried without finalization.
On Thu, Oct 15, 2015 at 2:58 PM, Yongxu Ren <renyongxu at gmail.com> wrote:
> Sorry I actually didn’t mean to use this for currying
> const add = a => b => a + b;
> This was directly copied from Mark's example, I was thinking about making
> the non-nested arrow functional.
> My idea is if you define
> const add = (a,b) => a + b;
> you will be able to use either ```add(a,b)``` or ```add(a)(b)```
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss