On 7/17/11 5:03 PM, jake kaiden wrote:

[snip]

> i overlooked that Array#index was always going to return the
> first occurrence even if it was within an iteration...

[snip]

Be careful not to think that a method *knows* that it's being used in 
the context of an iteration, even if it's a method of the same object 
you're iterating.

-- 
Stefano Mioli