深い意味は無い。
ただ 20 回繰り返せれば
それだけで良かったんだ。
class Program
{
static void Main(string[] args) {
20.Loop(() => Console.WriteLine("R"));
Console.ReadKey();
}
}
static class Ex {
public static void Loop<T>(this T value, Action action) where T : struct {
foreach(var i in Enumerable.Range(0, int.Parse(value.ToString()))) action();
}
}
なんか調子悪いな~