From: Jason Mayer Date: 2007-01-30T23:06:11+09:00 Subject: Re: Decending Range ------=_Part_125906_9010450.1170165969137 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 1/30/07, dblack@wobblini.net wrote: > > Hi -- > > On Tue, 30 Jan 2007, Jason Mayer wrote: > > > Ranges can be constructed using objects of any type, as long as the > objects > > can be compared using their <=> operator and they support the succ > method to > > return the next object in sequence. > > That's actually not a necessary condition -- you can have a range of > floats too. A range is fundamentally a kind of boolean test filter > for inclusion, and only secondarily a sort of ersatz array. I tend to > think too much is sometimes expected of ranges in the latter role. Oh. Maybe someone should update the content at http://www.ruby-doc.org/core/classes/Range.html ------=_Part_125906_9010450.1170165969137--