Summary
In this lesson, we covered the three main collections in the Swift Standard Library: Array, Set, and Dictionary; what they are; and how they can be used. We learned about indices, slices/subsequences, and some common protocols. We implemented methods for searching in sorted arrays, for removing duplicates from a sequence, and created the new collection,
CountedSet
.
In the next lesson, we will explore Strings in detail.