How can I perform an Array Slice in Swift?
<pre><code>var mentions = ["@alex", "@jason", "@jessica", "@john"]
</code></pre>

<p>I want to limit my array to 3 items, so I want to splice it:</p>

<pre><code>var slice = [String]()
if mentions.count &gt; 3 {
    slice = mentions[0...3] //alex, jason, jessica
} else {
    slice = mentions
}
</code></pre>

<p>However, I'm getting: </p>

<blockquote>
  <p>Ambiguous subscript with base type '[String]' and index type 'Range'</p>
</blockquote>

<p>Apple Swift version 2.2 (swiftlang-703.0.18.8 clang-703.0.31)
Target: x86_64-apple-macosx10.9</p>