0.0.2 • Published 9 years ago

@nathanfaucett/curry_right v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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