The OrderedCollection type provides the shared functionality of the OrderedSet and Sequence collections for which the elements are ordered. The common supertype of OrderedCollection is Collection.
conformsTo
Collection<T>
Operations
at(index : Integer) : T
The i-th element of sequence.
first() : T
The first element in self.
indexOf(obj : OclAny) : Integer
The index of object obj in the ordered collection.
last() : T
The last element in self.
reverse() : OrderedCollection<T>
The ordered collection of elements with same elements but with the opposite order.
Iterations
closure(i : T | body : Lambda T() : OrderedSet<T>) : OrderedSet<T>
The closure of applying body transitively to every distinct element of the source collection.
collect<V>(i : T | body : Lambda T() : V) : Sequence<V>
collectNested<V>(i : T | body : Lambda T() : V) : Sequence<T>
The sequence of elements that results from applying body to every member of the source ordered collection.