Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Access Array Elements

var languages = ["Swift", "Java", "C++"]

// access element at index 0
print(languages[0])   // Swift

// access element at index 2
print(languages[2])   // C++
 
PREVIOUS NEXT
Tagged: #Swift #Access #Array #Elements
ADD COMMENT
Topic
Name
5+6 =