From: Hal Fulton Date: 2005-04-29T06:18:57+09:00 Subject: Re: stupid question Joe Van Dyk wrote: > How can I neatly iterate from 0 to some number (either pos or neg) > while skipping over some number of numbers? > > How's that for confusing? > > So, > > If the ending number is 550 and I want to skip by 100s, it would print > 0, 100, 200, 300, 400, 500. > > If the ending number is -552 and I want to skip by 100s, it would print > 0, -100, -200, -300, -400, -500 > > There's nothing in the standard library that does this kind of thing, is there? I think there's a Fixnum#step or something. Hal