OCLOperators indexOf0

indexOf0 ( object : T ) : Integer[edit | edit source]

Returns the position of object in sequence self - 0 based.

Expression Result
Sequence{'a', 'b'}->indexOf('a') 0

The zero-based index of an object in the collection is possibly -1 if nonexistent.

See discussion and reason for introduction of IndexOf0 operator at page of IndexOf operator

See also at0

This page was edited 42 days ago on 10/02/2024. What links here