Last active
August 4, 2017 06:05
-
-
Save SteffenBlake/b61143a0abeeb4f3a71a850633224ed6 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
using System; | |
namespace FizzBuzz | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) => new Action<Action<int>>(f => (f = (x => (x > 1 ? new Action(() => f.Invoke(x - 1)) : () => { }).Invoke()) + f).Invoke((args != null && args.Length > 0 ? new Func<int>(() => int.Parse(args[0] ?? "100")) : () => 100).Invoke())).Invoke(x => { Console.WriteLine(new Func<string, string>(s => s == "" ? "{0}" : s).Invoke((x % 3 == 0 ? "Fizz" : "") + (x % 5 == 0 ? "Buzz" : "")), x); }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment