Sets Vs Arrays
Abozaid Ibrahim
Abozaid Ibrahim
Staff iOS Engineer | Building Scalable Mobile Apps | Mobile Lead | Mentor
When to use sets instead of arrays
- setting it fast, get it fast: O(1)
- comparing data sets
- A set is an unordered pool of unique objects.
- you can't have more than one copy of a value in the set.
read more here...
https://www.swiftbysundell.com/posts/the-power-of-sets-in-swift
#xcode #swift