Curried functions

Yongxu Ren renyongxu at
Thu Oct 15 19:58:05 UTC 2015

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)```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list