Skip to content

Instantly share code, notes, and snippets.

@ryuone
Created October 11, 2011 16:18
Show Gist options
  • Select an option

  • Save ryuone/1278554 to your computer and use it in GitHub Desktop.

Select an option

Save ryuone/1278554 to your computer and use it in GitHub Desktop.
dirt curry
main(){
curry(Function fun, carried) => (param) { fun(carried, param); };
greet(String greeting, String name) => print(greeting + " " + name);
var hi = curry(greet, "Hi!! ");
hi('ryuone.');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment