OrderedSet(T)
Operations
- append(t: T): OrderedSet(T)
- The ordered set consisting of all elements of self, followed by t1.
- at(i: Integer): T
- The element at index position i.
- first(): T
- The element at index position 1.
- reverse(): OrderedSet(T)
- The ordered set containing all elements of self in reverse order.
- last(): T
- The last element of self.
- subOrderedSet(i1: Integer, i2: Integer): OrderedSet(T)
- The sub-sequence of s starting at index i1, ranging to and including i2.
- prepend(t: T): OrderedSet(T)
- The ordered set consisting of t1, followed by all elements of self.
- including(t: T): OrderedSet(T)
- The ordered set containing all elements of self and t, appended as last element.
- excluding(t: T): Set(T)
- An ordered set containing all elements of self except from t. The order of the remaining elements is not changed.
- indexOf(t: T): Integer
- The position of t in self; OclUndefined if not contained
- select(e: OclExpression): OrderedSet(T)
- The subset of self, containing the elements for which e evaluates to true. The order of the elements is preserved.
- reject(e: OclExpression): OrderedSet(T)
- The subset of self, containing the elements for which e evaluates to false. The order of the remaining elements is preserved.
- collect(e: OclExpression): T2
- Equivalent to self->collectNested(e)->flatten().
- collectNested(e: OclExpression): T2
- The sequence of elements resulting from applying e to every element in self
- flatten(): T2
- If T is not a collection type, this results in self. Otherwise, the result is a ordered set containing all the elements of all the elements of s
- insertAt(i1: Integer, t2: T): OrderedSet(T)
- Returns a new squence with t2 inserted at position i1, if t2 is not already contained in o.