Chapter 2. Working with Collections
The last chapter covered a lot of the basics of Swift, with plenty of examples (including intentional mistakes) in order to reinforce the concepts of variables, constants, and types. As you’ll see going forward, the Chapter 1 information will come in handy in this and subsequent chapters.
For this chapter, get ready to turn your attention to the notion of collections.
When you think of a collection, what comes to mind? Here are several examples of collections you might have had at one time or another:
Assortment of toy action figures and accessories
Postage stamps or coins from different countries