Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
namelessmike
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
namelessmike
17y ago
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 end)