for (key, value)
in dictionary
_
사용let myFriends = ["철수": 19, "수잔": 23, "빙수" :22]
for (name, age) in myFriends{
print("\(name) 의 나이 \(age)")
}
.values
.keys
myFriends.foreach{ (key: String, value: Int) in
print("\(name) 의 나이 \(age)")
}
myFriends.keys.foreach{ (key: String) in
...
}