DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+4 =
Submit