OCLOperators intersection
No edit summary
Line 11: Line 11:
|Bag{'b', 'a', 'b'}
|Bag{'b', 'a', 'b'}
|}
|}
[[File:2019-11-25 13h29 19.png|none|thumb]]
[[Category:OCLOperators]]
[[Category:OCLOperators]]

Revision as of 12:29, 25 November 2019

intersection ( bag : Bag(T) ) : Bag(T)

Returns a Bag containing all elements of self that are also contained by *bag*.

Expression Result
Bag{'a', 'b', 'a'}->intersection(Bag{'a', 'b'}) Bag{'a', 'b'}
Bag{'a', 'b', 'a', 'b'}->intersection(Bag{'a', 'b', 'b'}) Bag{'b', 'a', 'b'}
2019-11-25 13h29 19.png
This page was edited 69 days ago on 02/10/2024. What links here