From: Michael Kohl Date: 2009-12-29T03:37:06+09:00 Subject: Re: creating array On Mon, Dec 28, 2009 at 12:25 PM, Haris Bogdanović wrote: > Is there a short way of creating array of numbers > with, for example, step of 10, like this: >> tens = Array.new(5) { |i| i*10 } => [0, 10, 20, 30, 40]