From: "Florian Groß" Date: 2005-06-28T20:30:48+09:00 Subject: Re: I saw the beauty of Ruby Re: 1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds Brad Wilson wrote: >>And what if you Use C# 2 features like generics and Array.Map? > I'm not sure what "Array.Map" is. The Whidbey beta 2 docs didn't show > a method off of Array or Array<> named Map. Ah, sorry, I should have checked back with the documentation. It's actually called Array.ConvertAll: > int[] numbers = { 1, 2, 3 }; > string[] newNumbers = Array.ConvertAll( > numbers, > delegate(int number) { return (number + 1).ToString(); }); > System.Console.WriteLine(String.Join(", ", newNumbers));