Index.
equals
Determine if two Index objects contain the same elements.
True if “other” is an Index and it has the same elements as calling index; False otherwise.