title: How do I check if an array of tuples contains a particular one in Swift?
body: <p>Consider the following Swift code.</p>
  
  <pre><code>var a = [(1, 1)]
  
  if contains(a, (1, 2)) {
      println("Yes")
  }
  </code></pre>
  
  <p>All I need is to check if <code>a</code> contains the tuple but the code leads to error.</p>
  
  <blockquote>
    <p>Cannot find an overload for 'contains' that accepts an argument list
    of type '([(Int, Int)], (Int, Int))'</p>
  </blockquote>
  
  <p>Why so and how to use <code>contains</code> properly?</p>