🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Set vs bag
This page was created by Hans.karlsen on 2019-11-25. Last edited by Edgar on 2025-08-31.


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