Monthly Archives: April 2009

From for loop to anamorphism

Introduction Sometimes you want to generate a sequence of objects. This is often done using a for loop: [Test]public void CreateListOfFoos() { var xs = new List<Foo>(); for (int i = 0; i < 10; i++) { xs.Add(new Foo()); } … Continue reading

Posted in Uncategorized | 1 Comment