title: Separate odd and even indexes in a sequence array
body: <p>A for in loop won't work because type int is does not conform to protocol Sequence.</p>
  
  <p>I have 3 arrays:</p>
  
  <p>1 master array, where the array is stored</p>
  
  <p>1 odd array, empty at the beginning</p>
  
  <p>1 even array, empty at the beginning</p>
  
  <p>The meaning is that all the odd indexes of the master array will be stored at the odd array, and the same for the even array.</p>
  
  <pre><code>    while i &lt; masterA.count {
          evenA.append(masterA[i])
          if i &gt; 0{
          oddA.append(masterA[i - 1])
          }
          i += 2
      }
  </code></pre>
  
  <p>However this does not work good enough. Anyone has a better idea?</p>