In this chapter, the dictionary type of data structures will be discussed. You will learn how to access, add, remove, and modify elements in a dictionary. Moreover, built-in properties and functions of dictionaries will be covered.
Introduction
A dictionary is another data type collection in Swift. This data structure takes its name from real-world dictionaries where you have words and their associated meaning; in programming, we use dictionaries to associate a key with its value, so any value can be identified as long as we know the key. If we look inside a real dictionary, we ...