Subject: Re: Looking for more Ruby-like way to create an array
From: Steve Nicholson <ssteve mac.com>
Date: Wed, 8 Oct 2008 06:48:39 +0900
References: 317127317128
In-reply-to: 317128
Tim Hunter wrote:
> Try map
>
> converted_array = orginal_array.map {|line| line.to_f * 100 }
Thanks, Tim, Rimantas, and Dan for the unanimous advice. I will study up
on map.
--
Posted via http://www.ruby-forum.com/.