I\'m doing something like this with a list \'a\':
a.each_with_index |outer, i| a.each_with_index |inner, j| if(j > i) # do some operation with
I've not looked at your actual code but here is your answer taken from the Ruby API docs:
Arrays are ordered, integer-indexed collections of any object.
So yes, you are being paranoid but surely that's a good thing when you're developing?