Learn how to use dictionaries in Swift to store an unordered collection of pairs.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3535-programming-in-swift/lessons/30
Learn how to use dictionaries in Swift to store an unordered collection of pairs.
-a dictionary values can be different types example
var response = Dictionary<String, Any>()
response[“user”] = [“Login”: “Power Ranger”, “Password”: “Mighty Morfin’”]
response[“status”] = 200
This topic was automatically closed after 166 days. New replies are no longer allowed.