const add = (a,b) => a+b
const adder = a => b => a+b
const curry = fn => a => b => fn(a,b)// curry(add) is identical to adder
How are the above functions related?
addis an ordinary binary function:
adderis a higher-order function with unary inputs:
Currying is a somewhat advanced technique that has a simple precept — it converts a function that takes multiple arguments…