On 20.03.2010 17:20, GianFranco Bozzetti wrote:
> array = [1,3,7,8]
> array.collect!   {|x|  x*2 }   # =>  [2,6,14,16]
>    
And most importantly:
array # => [2,6,14,16]