title: New Array from Index Range Swift
body: <p>How can I do something like this? Take the first n elements from an array:</p>
  
  <pre><code>newNumbers = numbers[0..n]
  </code></pre>
  
  <p>Currently getting the following error:</p>
  
  <pre><code>error: could not find an overload for 'subscript' that accepts the supplied arguments
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>Here is the function that I'm working in.</p>
  
  <pre><code>func aFunction(numbers: Array&lt;Int&gt;, position: Int) -&gt; Array&lt;Int&gt; {
      var newNumbers = numbers[0...position]
      return newNumbers
  }
  </code></pre>