Sequence(T)
Operations
- union(s: Sequence(T)): Sequence(T)
- The Sequence consisting of all elements of self, followed by all elements of s.
- append(t: T): Sequence(T)
- The Sequence consisting of all elements of self, followed by t.
- prepend(t: T): Sequence(T)
- The Sequence consisting of t, followed by all elements of self.
- subSequence(i1: Integer, i2: Integer): Sequence(T)
- The sub-sequence of self, starting at index i1 and ranging to and including i2.
- at(i: Integer): T
- The element at index position i.
- first(): T
- The element at index position 1.
- last(): T
- The last element of the sequence.
- including(t: T): Sequence(T)
- The sequence containing all elements of self and t, appended as last element.
- reverse(): Sequence(T)
- The sequence containing all elements of self in reverse order.
- excluding(t: T): Set(T)
- A sequence containing all elements of self except from any occurences of t. The order of the remaining objects is not changed.
- select(e: OclExpression): Sequence(T)
- The sub-sequence of self, containing the elements for which e evaluates to true.
- reject(e: OclExpression): Sequence(T)
- The sub-sequence of s, containing the elements for which e evaluates to false.
- collect(e: OclExpression): T2
- Equivalent to s->collectNested(e1)->flatten().
- collectNested(e: OclExpression): T2
- The sequence of elements resulting from applying e to every element in s
- flatten(): T2
- If the element Type is not a collection type this results in the same sequence. If the element type is a collection type, the result is a sequence containing all the elements of all the elements of s
- indexOf(t: T): Integer
- The index of the first occurence of t in self; OclUndefined if not contained
- insertAt(i1: Integer, t2: T): Sequence(T)
- Returns a new ordered set with t2 inserted at position i1 and the remaining elements are shifted accordingly.