📜  快速字典从 valye 获取密钥 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.229000             🧑  作者: Mango

代码示例1
let dict: [Int: String] = [1: "one", 2: "two", 4: "four"]

if let key = dict.someKey(forValue: "two") { 
    print(key)
} // 2