
Swift의 Dictionary타입은 Foundation의 NSDictionary를 bridge한 타입. 빈 Dictionary 생성 var namesOfIntegers = [Int: String]() namesOfIntegers[16] = "sixteen" namesOfIntegers = [:] 리터럴로 Dictionary 생성 var airports: [String: String] = = ["YYZ": "Toronto Pearson", "DUB": "Dublin"] Dictionary 접근, 변경 print("The airports dictionary contains \(airports.count) items.") // 빈 Dictionary 확인 if airports.isEmpty { print("..