From: dominikho@... Date: 2009-08-02T13:08:48+09:00 Subject: Re: build array from interval and duration Jason Lillywhite writes: > Is there a shorter way to build an array based on an interval and > duration than the way I attempted? > Yep: irb(main):004:0> 0.step(10, 0.5).to_a => [0.0, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5, 6.0, 6.5, 7.0, 7.5, 8.0, 8.5, 9.0, 9.5, 10.0] -- Dominik Honnef dominikho@gmx.net