| Start |
|---|
| Declaring Sets Sets are unordered collections of unique values. Unique values must be of the same type. You can declare a set with values by using the array literal syntax. |
| Performing operations on sets Common values from both sets: You can use the All values from each set: You can use the Notice how the value "Green" only appears once in the new set. Values that don't exist in both sets: You can use the Notice how the value "Green" doesn't appear in the new set, since it was in both sets. Values that are not in a set: You can use the Notice how the value "Green" doesn't appear in the new set, since it was also in the second set. |
| CountedSet Swift 3 introduces the CountedSet, as suggested by the name, keeps track of how many times a value is present. |
Modifying values in a set You can use the You can use the |
Checking whether a set contains a value You can use the |
| Adding values of my own type to a Set In order to define a Now you can create a |
Read Article
https://develop.horje.com/learn/1434/reference