一些关于集合的杂项实用工具和补充。
添加 stringWithKey, intWithKey, doubleWithKey 作为字典下标。 它们会尽力将字典值强制转换为正确的类型。
stringWithKey
intWithKey
doubleWithKey
添加一些便捷方法,这些方法调用 merge(other, uniquingKeysWith: 以替换或保留所有重复的键。
merge(other, uniquingKeysWith: