OCLOperators asSequence
No edit summary
No edit summary
Line 1: Line 1:
Returns a Sequence containing all elements of ''self''. Element ordering is preserved when possible.
Returns a Sequence containing all elements of ''self''. Element ordering is preserved when possible.  
{| class="wikitable"
{| class="wikitable"
!Expression
!Expression

Revision as of 07:57, 2 March 2023

Returns a Sequence containing all elements of self. Element ordering is preserved when possible.

Expression Result
Sequence{1, 2.0, '3'}->asSequence() Sequence{1, 2.0, '3'}
Bag{1, 2.0, '3'}->asSequence() Sequence{2.0, 1, '3'}
OrderedSet{1, 2.0, '3'}->asSequence() Sequence{1, 2.0, '3'}
Set{1, 2.0, '3'}->asSequence() Sequence{'3', 1, 2.0}
This page was edited 101 days ago on 02/10/2024. What links here