The Currying
What is currying
Currying is the technique of translating the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single argument. -- Wikipedia
It mean this:
1 | let add = (x) => (y) => x + y |
In order to define functions more easily, we need the loadsh, it will help us to currying the function.
make some using thing
1 | var _ = require("loadsh").curry |