
iOS 15 Programming for Beginners
By :

In this chapter, you looked at collection types in Swift. First you learned about arrays. This allows you to use an ordered list of values to represent an item like a shopping list, and perform operations on it.
Next, you learned about dictionaries. This allows you to use an unordered list of key-value pairs to represent an item like a contact list, and perform operations on it.
Finally, you learned about sets. This allows you to use an unordered list of values to represent an item like a movie genre list, and perform operations on it.
In the next chapter, you will study how to group a set of instructions together using functions. This is handy when you want to execute a set of instructions multiple times in your program.