All tagged collections

Set, An unordered collection of unique elements, is one of the most important collections types in Swift (arraydictionary and set)

You use set instead of an array when:
1. You aren't concerned about the order of the elements (Order does not matter)
2. You need to ensure that every element only appears once (no duplicated values)
3. You need to test efficiently for membership