Harry wrote:
>I never use 'for' loops in Ruby. So I can't explain if or why not, etc.
>But if you want to use 'for' loops, you could try something like this.
>
>for number in (1..5).to_a.reverse
>    puts number.to_s
>end
>

Martin DeMello wrote:
> On 2/19/07, Harry <ruby.hardware / gmail.com> wrote:
>> >
>> I never use 'for' loops in Ruby. So I can't explain if or why not, etc.
> 
> "for x in xs" translates internally to "xs.each do |x|", so the
> underlying problem is that Range#each only counts upwards.
> 
> martin

Thank you Harry and Martin!

Harry, I'll probably try your "to_a.reverse" suggestion for a while 
(<-no pun intended :)).

Martin, thanks for the explanation!  Maybe some day the Range#each will 
be enhanced to look at the ends of the range and increment or decrement 
accordingly.

Michael