In a functional programming what would you call this sort of operation?
function(f,vargs){ //variable count of arguments
return function(){
return f(vargs)
}
}
I think this is Currying, but I had the impression that currying is the term when we bind a single argument not several arguments. Or perhaps this is a delay, not really sure…
applyis the correct term — for instance, Python had an equivalentapply(that is now deprecated).See also partial application in Haskell or in Javascript. If partial application uses some of the arguments of the function, then it follows that full application, or just application, must use all of the arguments, like you did above.