Set vs bag
No edit summary
No edit summary
 
(2 intermediate revisions by one other user 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.

Latest revision as of 05:01, 19 September 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 1 days ago on 09/19/2024. What links here