guipn/sinful.js — pull request #19 by Mortchek (2012-12-17 04:49:10+00:00)
Title: Function.bundle

Function.bundle returns a function that executes its arguments with the arguments provided to the returned function, returning an array of their results.

Function.bundle(
function () {
return arguments[0]
},
function () {
return Array.prototype.reduce.call(arguments, function (a, b) {
return a + b
}, 0)
})(1, 2, 3) // [1, 6]