Question: what is the difference between array and dictionary in swift?
Answer: Arrays are ordered collections of values. ... Dictionaries are unordered collections of key-value associations. Arrays, sets, and dictionaries in Swift are always clear about the types of values and keys that they can store. This means that you cannot insert a value of the wrong type into a collection by mistake.