ios - How can I loop through objects in Swift? -


i have following object:

(rates)

{   eur: "1"   ron: 4.5   usd: 1.3   .   .   .   n: int/string } 

is there function this?

because it's dictionary, no enumerate() required:

var adictionary: [string: float] = ["eur": 1, "ron": 4.5,     "usd": 1.3]  (index,item) in adictionary{     print(index,item) } 

Comments