OCLOperators removeAt
Created by Hans.karlsen on 2021-12-21 · Last edited by Vale.buyondo on 2026-02-03.
The removeAt operator is an Executable Action Language (EAL) command used to remove an element from an association or collection based on its numerical index (position) rather than the identity of the object itself.
Syntax
Collection.removeAt(index: Integer)
- Index: An integer representing the position in the list.
- Zero-Based: The first item is at index 0, the second at 1, and so on.
Example
self.Orders.removeAt(0)
This removes the very first order in the list How it functions:
- Targeting: The operator looks at the
Orderscollection. - Indexing: It identifies the item at position
0(the top of the list). - Execution: It unlinks that specific order from the current context.
- Shifting: Immediately after removal, the item that was at index
1moves up to become the new index0.
