【发布时间】:2015-12-27 02:35:10
【问题描述】:
我想像示例中那样从字典中删除一个键值对。
var dict: Dictionary<String,String> = [:]
//Assuming dictionary is added some data.
var willRemoveKey = "SomeKey"
dict.removePair(willRemoveKey) //that's what I need
【问题讨论】:
标签: swift dictionary swift2