OCLOperators including
m ((username removed) (log details removed): Moving to Documentation namespace)
(Replacing message template with parser tag)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>


Returns a collection containing all elements of ''self'' followed by ''object''.  
Returns a collection containing all elements of ''self'' followed by ''object''.  
Line 20: Line 21:
|}
|}
[[Category:OCL Collection Operators]]
[[Category:OCL Collection Operators]]
{{Edited|July|12|2024}}

Latest revision as of 07:51, 17 June 2024


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 06/17/2024. What links here