title: Swift: delete all array elements
body: <p>I am trying to delete all array elements with a for loop like this:</p>
  
  <pre><code>for index 1...myArray.count {
     myArray.removeAtIndex(index)
  }
  </code></pre>
  
  <p>But it doesn't work, I get this error before bulding:</p>
  
  <blockquote>
    <p>Expected ';' in 'for' statement</p>
  </blockquote>