Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Named Tuple

// create named tuple
var company = (product: "Programiz App", version: 2.1)

// access tuple element using name
print("Product:", company.product)
print("Version:", company.version)
 
PREVIOUS NEXT
Tagged: #Swift #Named #Tuple
ADD COMMENT
Topic
Name
3+9 =