Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

append new element to dictionary in swift

var dict = [1: "abc", 2: "cde"] // dict is of type Dictionary<Int, String>
dict[3] = "efg"
 
PREVIOUS NEXT
Tagged: #append #element #dictionary #swift
ADD COMMENT
Topic
Name
3+4 =