Set vs bag
(Replacing message template with parser tag)
No edit summary
Line 1: Line 1:
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>
Set{1,2,3} Bag{1,2,3}
 
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.

Revision as of 05:01, 19 September 2024

This page was created by Hans.karlsen@mdriven.net 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