2

I noticed that if you apply this code:

var curry = function(x) {
    return function(y) {
        return x + y;
    };
};

console.log(curry(3)(2));

You could apply the sum of 3+2, this is what is called "Curry", but I don't find it very useful, I would like to know, if there are many others good examples and cases to use it

sepp2k
  • 363,768
  • 54
  • 674
  • 675
Germanaz0
  • 914
  • 8
  • 18

0 Answers0