Set vs bag
No edit summary
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Set{1,2,3}
Set{1,2,3} Bag{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.


Bag can have multiple instances of objects
Bag can have multiple instances of objects.
 
'''See also:''' [[Documentation:Collections|Collections]]
[[Category:OCL]]
{{Edited|July|12|2024}}

Latest revision as of 05:41, 23 May 2024

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

This page was edited more than 8 months ago on 05/23/2024. What links here