774 shaares
10 private links
10 private links
2 results
tagged
currying
Curry? # Currying is a technique that translates a function of arity N into a sequence of functions that all have the arity 1. Function arity means the number of arguments a function takes. # The add function has the arity of 2 add = fn x, y ->... | Patrik Storm | Svbtle
Currying is when you break down a function that takes multiple arguments into a series of functions that each take only one argument. Here's an example in JavaScript: