Array Order?

var scores = [“Malcom”: 97, “Kaylee”: 100,]
scores[“Jayne”] = 90
scores[“Rob”] = 77
print (scores)

 

[“Kaylee”: 100, “Malcom”: 97, “Rob”: 77, “Jayne”: 90]

 

Why does swift put these in this order doesn’t make sense seems random but I’m sure it’s not?

Powered by WPeMatico

About

You may also like...

Comments are closed.