title: Match on a pair of equal values
body: <p>I am trying to process a tuple, where one of the cases is that the two values are equal. Is there a better, more concise way to <code>match</code> on this than</p>
  
  <pre><code>(p, q) match {
    case (p, q) if (p == q) =&gt; println("Match!")
    ...
  }
  </code></pre>
  
  <p>?</p>