Curried functions
Mark S. Miller
erights at google.com
Thu Oct 15 13:02:04 UTC 2015
const add = a => b => a + b;
On Thu, Oct 15, 2015 at 8:08 AM, Niloy Mondal <niloy.mondal84 at gmail.com>
wrote:
> It would be really cool to have syntax to curry functions built into the
> languages. Something like...
>
> ```js
> curry function add(a, b) {
> return a + b;
> }
>
> add(2)(3); // 5
> ```
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
--
Cheers,
--MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151015/db80c8ff/attachment.html>
More information about the es-discuss
mailing list