From: fedzor Date: 2008-07-15T22:59:11+09:00 Subject: Re: array ending syntax question On Jul 15, 2008, at 1:13 AM, Roger Pack wrote: > irb(main):001:0> [1,2][2..2] > => [] > irb(main):002:0> [1,2][3..3] > => nil > > > Is this expected? > the ri says: > Returns nil if the index (or starting index) are out of range. > > does the first example match this? Yes, because array indices start at 0. So the highest index in the example is 1. -------------------------------------------------------| ~ Ari Some people want love Others want money Me... Well... I just want this code to compile