On Oct 12, 8:56 am, Yossef Mendelssohn <ymen... / pobox.com> wrote: > On Oct 11, 9:55 pm, Brian Adkins <lojicdot... / gmail.com> wrote: > I was thinking Range#last, but that has the same problem as Range#end > (probably one is an alias for the other). > > (1..10).last (or end) => 10 > (1..10).max => 10 > > (1...10).last (or end) => 10 > (1...10).max => 9 > > What you want is something like Actually, what you want is simply N. It's a nonsensical request from a troll. Using max, end, last, etc. to find the end of the range is ridiculous since you must know the end of the range to define the range!