1

I've this dictionary :

var proposals: [[Character: String]] = [[Character: String]]()

How i properly loop it to retrieve both values ?

Muzahid
  • 5,072
  • 2
  • 24
  • 42
Khorwin
  • 445
  • 1
  • 9
  • 27

1 Answers1

1

First loop through the top array to get dictionaries, then loop through dictionaries.

for subArray in proposals {
    for (key,value) in subArray {
        print("\(key) == \(value)")
    }
}
ogres
  • 3,660
  • 1
  • 17
  • 16