Classes | Collections > Ordered

OrderedIdentitySet : IdentitySet : Set : Collection : Object

a set according to identity
Source: Set.sc

Description

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.

Class Methods

Inherited class methods

1 methods from Set ► show
6 methods from Collection ► show
7 methods from Object ► show

Instance Methods

.do(function)

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.

Inherited instance methods

4 methods from IdentitySet ► show
26 methods from Set ► show
97 methods from Collection ► show
259 methods from Object ► show

Undocumented instance methods

.clear

.copy

.items = value

.remove(item)

.sort(func)