From: Gregory Brown Date: 2006-04-22T04:29:20+09:00 Subject: Re: Newbie questoin of the day:A for loop that counts backwards? On 4/21/06, MenDAKE wrote: > How do I get a for loop to count backwards? > > I have the loop... > > for i in 1 ... 8 1.upto(8) { |i| .. } > ...but I want it to start at 8 and end at 1. This does NOT work: > > for i in 8 ... 1 8.downto(1) { |i| ... }