Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Tuple

// create tuple with two elements
var product = ("MacBook", 1099.99)

// access tuple elements
print("Name:", product.0)
print("Price:", product.1)
 
PREVIOUS NEXT
Tagged: #Swift #Tuple
ADD COMMENT
Topic
Name
4+5 =