Josselin
10/2/2006 5:01:00 PM
On 2006-10-02 14:54:58 +0200, Stephane Elie <stephane.elie@gmail.com> 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