Swift

Joel Arias
Joel Arias
iOS Development with Swift Techdegree Student 3,239 Points

Why we get back an optional dictionary when using a key?

In the "weatherDictionary· example. A dictionary of type[String[String:String]] was created . When using a key to assign it to a new constant let someValue = dictionary["key"]) we get back an optional dictionary.