Dictionaries in Swift

In this article, I would like to introduce and delve into dictionary in Swift. Dictionary is a container which stores key-value pairs. All the keys in the dictionary are of the same type and all the values are of the same type. The order in dictionary is not maintained. If you are a Java developer, you can correlate this to Hashtable which gives fast access to its entries.

Advertisements