From: fREW Date: 2007-06-05T06:23:44+09:00 Subject: Re: Reverse-range alternatives? On 6/4/07, Kenneth McDonald wrote: > Since a reverse range (eg. 4...1) is functionally almost the same as an > empty range, is there an alternative in the standard library, where > .each would actually iterate over the elements from first to last, in > this case 4, 3, 2? > > Thanks, > Ken > > You could do 4.downto(2) { |i| ... } -- -fREW