How can I do a Swift for-in loop with a step? : <p>With the <a href="https://github.com/apple/swift-evolution/blob/master/proposals/0007-remove-c-style-for-loops.md">removal of the traditional C-style for-loop in Swift 3.0</a>, how can I do the following?</p>

<pre><code>for (i = 1; i &lt; max; i+=2) {
    // Do something
}
</code></pre>

<p>In Python, the for-in control flow statement has an optional step value:</p>

<pre><code>for i in range(1, max, 2):
    # Do something
</code></pre>

<p>But the Swift range operator appears to have no equivalent:</p>

<pre><code>for i in 1..&lt;max {
    // Do something
}
</code></pre>
