Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Iterate Over a Set

let fruits: Set = ["Apple", "Peach", "Mango"]

print("Fruits:")

// for loop to access each fruits
for fruit in fruits {
  print(fruit)
}
 
PREVIOUS NEXT
Tagged: #Swift #Iterate #Over #Set
ADD COMMENT
Topic
Name
1+4 =