I have a simple Dictionary which is defined like:
var dict : NSDictionary = [ 1 : \"abc\", 2 : \"cde\"]
Now I want to add an element into t
Given two dictionaries as below:
var dic1 = ["a": 1, "c": 2] var dic2 = ["e": 3, "f": 4]
Here is how you can add all the items from dic2 to dic1:
dic2.map { dic1[$0.0] = $0.1 }
Cheers A.