Skip to content

Instantly share code, notes, and snippets.

@danbeam
Created May 25, 2011 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danbeam/990300 to your computer and use it in GitHub Desktop.
Save danbeam/990300 to your computer and use it in GitHub Desktop.
flab.js
flab =
function () {
var s = Array.prototype.slice,
a = [s.call(arguments)],
b = function () {
b._calls = a
a.push(s.call(arguments))
return b
}
b.toString = function () {
return a.join(" ")
}
return b
}
// "oh herro derek!" == (flab)("oh")("herro")("derek!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment