🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Set vs bag
(Automatically adding template at the end of the page.)
(Updated Edited template to July 12, 2025.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Set{1,2,3} Bag{1,2,3}
<message>Write the content here to display this box</message>
 
Set{1,2,3}  
 
Bag{1,2,3}


Set will only have 1 instance of objects - multiple instances resulting from operations will be stripped.
Set will only have 1 instance of objects - multiple instances resulting from operations will be stripped.
Line 5: Line 9:
Bag can have multiple instances of objects.  
Bag can have multiple instances of objects.  


See also: [[Collections]]  
'''See also:''' [[Documentation:Collections|Collections]]  
[[Category:OCL]]
[[Category:OCL]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Latest revision as of 06:02, 20 January 2025

This page was created by Hans.karlsen on 2019-11-25. Last edited by Edgar on 2025-01-20.


Set{1,2,3}

Bag{1,2,3}

Set will only have 1 instance of objects - multiple instances resulting from operations will be stripped.

Bag can have multiple instances of objects.

See also: Collections

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments