According to the question answered in here
A dictionary stores associations between keys of the same type and values of the same type in an collection with no defined ordering.
Thus,
//First Attempt
var dict : Dictionary = ["name1" : "Loy", "name2" : "Roy"]
println(dict)
//output:
[name2: Roy, name1: Loy]
//Second Attempt
var dict : Dictionary = ["name2" : "Loy", "name1" : "Roy"]
println(dict)
//output:
[name2: Loy, name1: Roy]
My question is,
Is it guaranteed that if the content of the Dictionary is not changed the order will remain same?
For example for above example, First Attempt always returns the same order whatever the number of runs?