An OrderedIdentitySet is a collection of objects, no two of which are the same object (aka. "identical"). Most of its methods are inherited. (see Collection and Set classes). Unlike IdentitySet, contents of an OrderedIdentitySet are ordered.
Evaluates function for each item in the OrderedIdentitySet. You may depend on the order of items. The function is passed two arguments, the item and an integer index.