title: Equality function for pair components
body: <p>Is there a function in Scala that compares the two components of a pair for equality? Something like:</p>
  
  <pre><code>def pairEquals[A, B](pair: Pair[A, B]): Boolean = (pair._1 == pair._2)
  </code></pre>
  
  <p>In Haskell, that would be:</p>
  
  <pre><code>uncurry (==)
  </code></pre>