Skip to content

Instantly share code, notes, and snippets.

function currying(fun) {
function curryingIter(fun, len) {
if (len < 2) {
return fun
}
return curryingIter(function() {
var args = [].slice.call(arguments)
return function(x) {
args.push(x)