Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created August 23, 2015 12:30
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/cc14f2e1b206957c8b54 to your computer and use it in GitHub Desktop.
Save angelovstanton/cc14f2e1b206957c8b54 to your computer and use it in GitHub Desktop.
public static class CurryMethodExtensions
{
public static Func<A, Func<B, Func<C, R>>> Curry<A, B, C, R>(this Func<A, B, C, R> f)
{
return a => b => c => f(a, b, c);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment