Created
January 20, 2011 02:06
-
-
Save thebigbad/787281 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var foo = function (bar, baz) {}; | |
| var getBaz = function (callback) { | |
| var baz = 3; | |
| callback(baz); | |
| }; | |
| var bar = 2; | |
| getBaz(function (baz) { foo(bar, baz); }); | |
| /* BLARG BLARG BLARG */ | |
| var foo = function (bar, baz) {}; | |
| var getBaz = function (callback) { | |
| var baz = 3; | |
| callback(baz); | |
| }; | |
| var bar = 2; | |
| var curry = function (f, first_arg) { | |
| return function (second_arg) { | |
| f(first_arg, second_arg); | |
| }; | |
| }; | |
| getBaz(curry(foo, bar)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment