title: Cannot find an overload for 'contains' that accepts an argument list of type '(Array<String!>, String)' in Swift
body: <p>I am trying to determine whether an <code>Array</code> contains a certain string value using <code>contains</code>. The array is defined like so:</p>
  
  <pre><code>var myArray: Array&lt;String!&gt; = []
  </code></pre>
  
  <p>This is in a separate file (as it is manipulated in a number of different places), to the one in which I am trying to do the following:</p>
  
  <pre><code>var searchString: String! = "Search"
  
  if contains(myArray, searchString) {
       println("Exists")
  }
  else {
       println("Doesn't Exist")
  }
  </code></pre>
  
  <p>Each time I try to run the above code, I get an error saying:</p>
  
  <pre><code>Cannot find an overload for 'contains' that accepts an argument list of type '(Array&lt;String!&gt;, String)'
  </code></pre>
  
  <p>I have tried the following:</p>
  
  <pre><code>if myArray.contains(searchString) {
  ...
  </code></pre>
  
  <p>But then I get a error saying:</p>
  
  <pre><code>'Array&lt;String!&gt;' does not have a member named contains
  </code></pre>
  
  <p>How do I use <code>contains</code> without Swift returning an error?</p>