C# 3: (1).UpTo(10).ForEach(x => Console.WriteLine(x)); Of course, "UpTo" requires first extending int, which is trivial: public static class IntExtensions { public static List<int> UpTo(this int start, int…
C# 3: (1).UpTo(10).ForEach(x => Console.WriteLine(x)); Of course, "UpTo" requires first extending int, which is trivial: public static class IntExtensions { public static List<int> UpTo(this int start, int…