“Functions in lambda calculus only accept a single input. They’re unary. If you need more than one parameter, the function will take one input and return a new function that takes the next, and so on. The n-ary function (x, y) => x + y can be expressed as a unary function like: x => y => x + y. This transformation from an n-ary function to a unary function is known as currying.”
More from Eric Elliott
“Redux has caught on so much that it’s not just being used for React anymore. You can find…”
“Initially, I was very excited about both promises and generators, but now that I’ve been…”
“In order to claim fluency in JavaScript, it’s important to understand how JavaScript’s…”