Re: Reverse Divisible Numbers (#161)
by Matthew Moss other posts by this author
May 8 2008 2:21PM messages near this date
Re: Reverse Divisible Numbers (#161)
|
Re: [QUIZ] Reverse Divisible Numbers (#161)
> > def count(lower, upper, incr)
> > raise "Require lower <= upper" if lower > upper
> > raise "Require incr > 0" unless incr > 0
> > while lower <= upper do
> > yield lower
> > lower += incr
> > end
> > end
>
> Isn't that Numeric#step (ignoring exceptions)?
Why, yes, it would appear to be so... Learn something every day, I do.
=)
Thread:
Matthew Moss
Harry Kakueki
Matthew Moss
ThoML
Marcelo
Matthew Moss
Harry Kakueki
Ken Bloom
Ken Bloom
Sandro Paganotti
Ken Bloom
Matthew Moss
ThoML
ThoML
ThoML
Marcelo
ThoML
ThoML
Harry Kakueki
Marcelo
Marcelo
Shane Emmons
ThoML
Ken Bloom
Matthew Moss
Martin DeMello
Shane Emmons
Matthew Moss
ThoML
Marcelo
Rob Biedenharn
Robert Klemme
Robert Klemme
Matthew Moss
Shane Emmons
Matthew Moss
|