@nathanfaucett/curry_right
v0.0.2
Published
creates function with arguments bound to it
Downloads
1
Maintainers
Readme
curryRight
creates function with arguments bound to it
var curryRight = require("@nathanfaucett/curry_right");
function subtract(x, y) {
return x - y;
}
/*
function subtract_one(y) {
return subtract(x, 1);
}
*/
var subtract_one = curryRight(subtract, 1);
subtract_one(5); // 4