Question : Swift Iterate Over a Set
Answered by : samer-saeid
let fruits: Set = ["Apple", "Peach", "Mango"]
print("Fruits:")
// for loop to access each fruits
for fruit in fruits { print(fruit)
}
Source : | Last Update : Thu, 23 Jun 22
Answered by : samer-saeid
let fruits: Set = ["Apple", "Peach", "Mango"]
print("Fruits:")
// for loop to access each fruits
for fruit in fruits { print(fruit)
}
Source : | Last Update : Thu, 23 Jun 22