🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
Set vs bag


Set{1,2,3}

Bag{1,2,3}

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

A Bag can have multiple instances of objects.

See also: Collections