swift set to array code example
Example: swift list
var shoppingList: [String] = ["Eggs", "Milk"]
// shoppingList has been initialized with two initial items
var shoppingList: [String] = ["Eggs", "Milk"]
// shoppingList has been initialized with two initial items