Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Change Value of Dictionary

var studentID = [111: "Eric", 112: "Kyle", 113: "Butters"]
print("Initial Dictionary: ", studentID)

studentID[112] = "Stan"

print("Updated Dictionary: ", studentID)
 
PREVIOUS NEXT
Tagged: #Swift #Change #Value #Dictionary
ADD COMMENT
Topic
Name
6+1 =