Skip to content

Instantly share code, notes, and snippets.

@nowelium
Created May 5, 2010 07:59
Show Gist options
  • Save nowelium/390511 to your computer and use it in GitHub Desktop.
Save nowelium/390511 to your computer and use it in GitHub Desktop.
Block curry := method(
args := call message argsEvaluatedIn(call sender)
if(args size < 1) then (
return self
)
/*
target := args at(0)
args = args slice(1)
*/
b := self
return block(
b apply(scope, args union(call message argsEvaluatedIn(call sender)))
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment