let pageParams = ["page": "1",
"limit": "10"]
let commonParams = ["lang": "en",
"scale": "@3x"]
var resultParams = ["page": "1",
"limit": "10",
"lang": "en",
"scale": "@3x"]
// how to make "resultParams" by programmatically join "pageParams" with "commonParams" ? Is any short code available ?
我有两个词典具有相同的数据类型。键和值是字符串类型。我需要以编程方式加入这两个词典。 Swift有更好的短代码吗?或者我们需要循环并加入吗?