title: (Swift) moving objects while iterating over array
body: <p>I am trying to remove some objects from 1 array, and move them to another.
  I am doing this by removing them from a reversed array, and adding them to another array, like so:</p>
  
  <pre><code>var array1 = [1,2,3,4,5,6]
  var array2 = [1,2]
  for (index, number) in array1.enumerated().reversed() {
      if(number&gt;2) {
          array1.remove(at: index)
          array2.append(number)
      }
  }
  </code></pre>
  
  <p>The problem is, the objects in array 2 are obviously reversed (1,2,6,5,4,3)
  I can easily come up with complicated workarounds, but I was wondering if there are any straightforward ways of doing this. </p>
  
  <p>Thanks in advance!</p>