Answers for "append new element to dictionary in swift"

1

append new element to dictionary in swift

var dict = [1: "abc", 2: "cde"] // dict is of type Dictionary<Int, String>
dict[3] = "efg"
Posted by: Guest on February-24-2022

Code answers related to "append new element to dictionary in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language