OCLOperators asSequence
(Automatically adding template at the end of the page.) |
(Adding message template to the top of the page) |
||
Line 1: | Line 1: | ||
{{message|Write the content here to display this box}} | |||
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" |
Revision as of 22:23, 16 June 2024
This page was created by Alexandra on 2017-08-13. Last edited by Edgar on 2025-01-20.
Write the content here to display this box
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} |