In this chapter, we covered Swift collections. Having a good understanding of the native collection types of Swift is essential to architecting and developing applications in Swift since all but the most basic applications use them.
The three Swift collection types are arrays, sets, and dictionaries. Arrays store data as an ordered collection. Sets store data as an unordered collection of unique values. Dictionaries store data in an unordered collection of key-value pairs.
In the next chapter, we will look how to use Swift's control flow statements.