OCLOperators union
(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}}
=== union ( bag : Bag(T) ) : Bag(T) ===
=== union ( bag : Bag(T) ) : Bag(T) ===
Returns a Bag containing all elements of ''self'' and all elements of *bag*.  
Returns a Bag containing all elements of ''self'' and all elements of *bag*.  

Revision as of 22:26, 16 June 2024

Write the content here to display this box

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 19 days ago on 08/30/2024. What links here