Loop through array

 Problem

I have an array and want to iterate through all of its elements.



 Recipe


// Initialize the Array
var arr = ["one", "two", "three"]

// Iterate through the array

for element in arr {
    print(element)
}

				


 Playground