Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created August 23, 2015 12:32
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 angelovstanton/907b6f2c3ec1959dddee to your computer and use it in GitHub Desktop.
Save angelovstanton/907b6f2c3ec1959dddee to your computer and use it in GitHub Desktop.
Func<int, int, int, int> addNumbers = (x, y, z) => x + y + z;
var f1 = addNumbers.Curry();
Func<int, Func<int, int>> f2 = f1(3);
Func<int, int> f3 = f2(4);
Console.WriteLine(f3(5));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment