From: Fleck Jean-Julien Date: 2009-12-28T20:35:11+09:00 Subject: Re: creating array Hello > By short I mean without going through iteration loop: > > array=[] > (1..5).each do |i| >    array.push i*10 > end Would you be pleased with something like this ? >> array = (1..5).collect {|i| i*10} => [10, 20, 30, 40, 50] Cheers, -- JJ Fleck PCSI1 Lycée Kléber