Created
May 6, 2010 12:13
-
-
Save francescoagati/392065 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run_in_context: (fn,context) -> | |
if fn.length>0 | |
fn.apply null,[context] | |
else | |
fn.apply context | |
process: (n,fn) -> | |
run_in_context fn,n | |
process 4, (number) -> | |
debug number | |
process 4, -> | |
debug @ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment