On Tue, 11 Feb 2003, Vraj Mohan wrote: > Yukihiro Matsumoto wrote: > > Hi, > > > > In message "Re: Range#length?" > > on 03/02/12, "Chris Pine" <nemo / hellotree.com> writes: > > > > |Well, it's a shame that something wasn't put in to refer to the last actual > > |element in the range. That's actually all I want. As I said, #end, #last, > > |and #max all return `99' for both 3..99 and 3...99. > > | > > |Oh, well. Nothing a good ``last - (exclude_end? ? 1 : 0)'' can't handle. > > > > Do you think of a good name for it? I'm glad to add a method if > > you have a good name. > > > > matz. > > > How about "last_member"? what would be the last_member of (0.0 ... 42.0) ?? -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward / fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================