From: "David A. Black" Date: 2008-10-08T10:37:09+09:00 Subject: Re: Looking for more Ruby-like way to create an array Hi -- On Wed, 8 Oct 2008, Bilyk, Alex wrote: > converted_array = original_array.inject([]) {|a, line| a << (line.to_f * 100)} I'd definitely favor map over inject for this. It's much more straightforward for this particular operation. David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!