Henry Savr <hsavr / yahoo.com> writes:

> Well, you wrote a great Array Analyzer
> Here it is:
>
> def array_101
>   for i in [0 ... self.length]
>     puts "#{i} => #{self[i]}"
>   end
> end

for i in 0 ... self.length
does what you would expect. In your example you iterate over an array
with one element, and this element is a range. So the result isn't really
unexpected.

Tom