Dictionaries in Swift are like arrays in special characteristics, such as mutable and strongly typed. Dictionary is mutable by default, except if used with
let. Also keys and values should be of the same type.
The dictionary type is inferred by the initial values, or you can explicitly write it using the square brackets
To initialize a dictionary, you have two options. The first option is to create an empty one with no data. You can create it like this:
var dic1 = [String:Int]() // 0 key/value pairs
As we see in this case, we had to explicitly write the type of keys and values.
In the second option, you have the predefined values like this:
var dic2 = ["EN" : "English", "FR" : "French"] //["EN": ...