OCLOperators at0
(Automatically adding template at the end of the page.)
(Updated Edited template to July 12, 2025.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== at ( index : Integer ) : T ===
<message>Write the content here to display this box</message>
=== at0 ( index : Integer ) : T ===
Returns the element of ''self'' at the *index* position.  
Returns the element of ''self'' at the *index* position.  


Line 7: Line 8:
!Result
!Result
|-
|-
|Sequence{'a', 'b'}->at(1)
|Sequence{'a', 'b'}->at0(1)
|a
|b
|}
|}
[[Category:OCL Collection Operators]]
[[Category:OCL Collection Operators]]
{{Edited|July|12|2024}}
{{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