Skip to content

Instantly share code, notes, and snippets.

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