Just starting to learn Swift and was wondering if there was a way to quickly add multiple keys and values into a dictionary.
The reason I ask is that for the Array, we can quickly add new things to the list with the .append
syntax, for example:
var newArray = ["ArrayItem1"]
var appendItems = ["ArrayItem2", "ArrayItem3", "ArrayItem4"]
newArray += appendItems
Is there such a short way to do it for Dictionaries?