Skip to content

Instantly share code, notes, and snippets.

@SteffenBlake
Last active August 4, 2017 06:05
Show Gist options
  • Save SteffenBlake/b61143a0abeeb4f3a71a850633224ed6 to your computer and use it in GitHub Desktop.
Save SteffenBlake/b61143a0abeeb4f3a71a850633224ed6 to your computer and use it in GitHub Desktop.
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