From: Christoffer Sawicki Date: 2006-05-22T05:13:07+09:00 Subject: Re: Array#[] and Out of Range Hello. > It makes sense. Your subscripts are ranges of indices, not indices. Ruby > gives you the subarray specified by the indices in the range. In both of > your examples, you get empty arrays. Were you expecting to get arrays of > nils? I realize I should have added another example: [:x][2..x] => nil The return values of the two previous examples are actually what I'd expected, but it doesn't seem to with consistent with my latest example or the documentation. As I read it, in the case of ranges "starting index" refers to Range#first. Thanks, -- Christoffer Sawicki