From: Edgardo Hames Date: 2004-09-30T23:43:25+09:00 Subject: Re: Range syntax theory On Thu, 30 Sep 2004 23:09:54 +0900, Henrik Horneber wrote: > Austin Ziegler wrote: > >>What distracts me most, is the visual difference ... that the > >>visually longer three dot form contains fewer elements than the shorter > >>two dot form. > >> > > > > irb(main):001:0> (1..5).include?(4.99) > > => true > > irb(main):002:0> (1...5).include?(4.99) > > => true > > irb(main):003:0> > > > > 1...5 doesn't include only the numbers 1, 2, 3, and 4 -- it contains > > the infinities between the numbers, and the infinity between 4 and 5, > > but not 5 itself. > > > > Still, it's the 'larger' Range. > Otherwise, good point, thx. > They are actually the same length! Nevermind, I like Cantor way too much ;) Ed -- " Don't relax! It's only your tension that's holding you together."