From: SonOfLilit Date: 2007-02-19T22:27:02+09:00 Subject: Re: For loops don't count down Numeric#step counts down: 5.step(-1) do |i| #stuff end Aur On 2/19/07, Robert Dober wrote: > On 2/19/07, David Vallner wrote: > > On Mon, 19 Feb 2007 07:28:36 +0100, Michael Fellinger > > wrote: > > > what it essentially does is: > > > > > > (1..5).to_a.reverse.each do |number| > > > puts number > > > end > > > > > > > Syntactically, I'd prefer "for number in 5..1" to that monstrous method > > chain any day of the week. > Completely agree, for esthetically reasoning. > But in practice, I am afraid that there is no way to have this David. > As we need 5..1 to be an empty range, or am I blocked? > > > > David Vallner > > > > > Robert > > -- > We have not succeeded in answering all of our questions. > In fact, in some ways, we are more confused than ever. > But we feel we are confused on a higher level and about more important things. > -Anonymous > >