Swift изменить элемент кортежа
// create tuple with two elements
var product = ("MacBook", 1099.99)
print("Original Tuple: ")
// access tuple elements
print("Name:", product.0)
print("Price:", product.1)
// modify second value
product.1 = 1299.99
print("\nTuple After Modification: ")
// access tuple elements
print("Name:", product.0)
print("Price:", product.1)
SAMER SAEID