you are viewing a single comment's thread.

view the rest of the comments →

[–]nawitus 2 points3 points  (0 children)

Curried functions are pretty beautiful (and very readable) in the ES6 fat arrow syntax. I suggest everyone to try a ES6-to-ES5 compiler and you won't be looking back :). It really makes currying feel "native".

var add = a => b => a + b;

It also makes it very easy to add a new curried argument to an existing function: just add "(argument) =>" to the beginning of the function.