Skip to content

Instantly share code, notes, and snippets.

@DexterHaslem
Created November 7, 2014 22:36
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 DexterHaslem/61c14cff7d66c05b4996 to your computer and use it in GitHub Desktop.
Save DexterHaslem/61c14cff7d66c05b4996 to your computer and use it in GitHub Desktop.
Func<int, int, int> f = null;
f = new Func<int, int, int>( (x,y) =>
{
Console.WriteLine(x);
if (f != null && y < 5)
return x + f(x, y + 1);
return x + x;
});
f(1, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment