Iterate over a collection

var recipe: Set = ["Egg", "Flour", "Sugar"]
for ingredient in recipe {
  print ("Include \(ingredient) in the recipe")
}
Comments