OCLOperators including
No edit summary
No edit summary
Line 19: Line 19:
|Set{'a', 'c', 'b'}
|Set{'a', 'c', 'b'}
|}
|}
[[Category:OCLOperators]]
[[Category:OCL Collection Operators]]
[[Category:OCL Collection Operators]]

Revision as of 06:14, 18 April 2023

Returns a collection containing all elements of self followed by object.

**Note**: at the time of writing, the OCL standard library sports a bug that changes *OrderedSets* in *Sets* when including elements.

Expression Result
Sequence{'a', 'b'}->including('c') Sequence{'a', 'b', 'c'}
Bag{'a', 'b'}->including('c') Bag{'a', 'c', 'b'}
OrderedSet{'a', 'b'}->including('c') Set{'a', 'c', 'b'}
Set{'a', 'b'}->including('c') Set{'a', 'c', 'b'}
This page was edited 95 days ago on 02/10/2024. What links here