OCLOperators union
m ((username removed) (log details removed): Moving to Documentation namespace)
(Automatically adding template at the end of the page.)
 
Line 13: Line 13:
[[File:2019-11-25 13h28 15.png|none|thumb]]
[[File:2019-11-25 13h28 15.png|none|thumb]]
[[Category:OCL Collection Operators]]
[[Category:OCL Collection Operators]]
{{Edited|July|12|2024}}

Latest revision as of 15:43, 10 February 2024

union ( bag : Bag(T) ) : Bag(T)

Returns a Bag containing all elements of self and all elements of *bag*.

Expression Result
Bag{'a', 'b', 'a'}->union(Bag{'b', 'c'}) Bag{'b', 'a', 'b', 'a', 'c'}
Set{1,2,3}->union(Set{2,3,4}) Set{1,2,3,4}
2019-11-25 13h28 15.png
This page was edited 95 days ago on 02/10/2024. What links here