OCLOperators union
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{'a', 'b', 'a', 'c'} |
Set{1,2,3}->union(Set{2,3,4}) | Set{1,2,3,4} |
Video: https://www.youtube.com/watch?v=-vBshXtEPts