title: Multiple increments in Swift style for loops
body: <p>I have the following loop in my Swift code:</p>
  
  <pre class="lang-swift prettyprint-override"><code>for var i:Int = 0, j:Int = 0; i &lt; rawDataOut.count; i += 4, ++j {
      maskPixels[j] = rawDataOut[i + 3]
  }
  </code></pre>
  
  <p>I'm getting two warnings in Xcode:</p>
  
  <ol>
  <li>C-style for statement is deprecated and will be removed in a future version of Swift</li>
  <li>'++' is deprecated: it will be removed in Swift 3</li>
  </ol>
  
  <p>I cannot see how to rewrite this in Swift's <a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/ControlFlow.html" rel="noreferrer">For In Loops</a> to take into account the two variables and the 4-stride without it getting messy. Is there a simple elegant translation?</p>