Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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