From: Josselin Date: 2006-10-03T02:05:11+09:00 Subject: Re: what's wrong in my loop ? On 2006-10-02 14:54:58 +0200, Stephane Elie said: > Hi Josselin, > > Tom is right about the "i++". > > Also, it doesn't look like your pseudo-code matches your ruby code > functionality. > > I'll give it a shot as what you may want to do, just a guess... > > db = [] > record.each do |b| > (b.end_at - b.start_at).times { |i| db << [b.start_at+i, i ] } > end thansk Tom & Steph newbie I am mixin any languages into it.... I actually need to remember first that Ruby is OO, so i.next makes more sense compared to i++ joss