Changes

Working with Array and Dictionary Collections in Swift 2

12 bytes removed, 20:27, 1 February 2016
m
Text replacement - "<google>BUY_IOS9</google>" to "<htmlet>ios9</htmlet>"
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
The easiest way to iterate through the items in an array is to make use of the for-in looping syntax. The following code, for example, iterates through all of the items in a String array and outputs each item to the console panel:
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>
<pre>
var treeArray = ["Pine", "Oak", "Yew", "Maple", "Birch", "Myrtle"]
<googlehtmlet>BUY_IOS9ios9</googlehtmlet>