OCLOperators union
No edit summary |
|||
Line 8: | Line 8: | ||
|Bag{'b', 'a', 'b', 'a', 'c'} | |Bag{'b', 'a', 'b', 'a', 'c'} | ||
|} | |} | ||
[[File:2019-11-25 13h28 15.png|none|thumb]] | |||
[[Category:OCLOperators]] | [[Category:OCLOperators]] |
Revision as of 12:28, 25 November 2019
This page was created by Alexandra on 2017-08-14. Last edited by Edgar on 2025-01-20.
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'} |