OCLOperators at0
(Created page with "Get the objects at X where the first index is 0")
 
(Updated Edited template to July 12, 2025.)
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Get the objects at X where the first index is 0
<message>Write the content here to display this box</message>
=== at0 ( index : Integer ) : T ===
Returns the element of ''self'' at the *index* position.
 
'''Note! 0-based index.'''
{| class="wikitable"
!Expression
!Result
|-
|Sequence{'a', 'b'}->at0(1)
|b
|}
[[Category:OCL Collection Operators]]
{{Edited|July|12|2025}}See also [[Documentation:OCLOperators at|at]] operator and comments on [[Documentation:OCLOperators indexOf|indexof]] operators

Latest revision as of 05:56, 20 January 2025

This page was created by Alexandra on 2017-08-13. Last edited by Edgar on 2025-01-20.

at0 ( index : Integer ) : T

Returns the element of self at the *index* position.

Note! 0-based index.

Expression Result
Sequence{'a', 'b'}->at0(1) b

See also at operator and comments on indexof operators