Created
November 7, 2014 22:36
-
-
Save DexterHaslem/61c14cff7d66c05b4996 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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