Friday, April 29, 2011

Ruby is so cool, with its blocks

Ruby is so cool, with its blocks

[1, 2, 3].each do |i|
    print i
end
Here is what can be done with C#, LINQ and DynamicSugar.net
DS.List(1, 2, 3).ForEach(i => {

    Console.WriteLine(i);
});

No comments:

Post a Comment