Robert Klemme
10/8/2008 12:37:00 PM
2008/10/8 David A. Black <dblack@rubypal.com>:
> 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.
Absolutely agree!
robert
--
remember.guy do |as, often| as.you_can - without end