function(f, args) {
return (
function() { return f(vargs) }
)
}
f args, , , , f(args), f vargs .
In Mathematica, for example, you can write it as F[f_, args___] := f[args]&. Since the returned anonymous function is a constant function (takes no arguments), you can also write it as F[f_, args___] := f[args], omitting the latter &.
source
share