title: Return first element of the tuple
body: <p>Suppose I create a function that adds two integers :</p>
  
  <pre><code>def addInt(a : Int, b: Int) : (Int, Int) = {
   | val x = a + b
   | (x,2)
   | }
  </code></pre>
  
  <p>I'm returning <code>(result, 2)</code> on purpose for the sake of this question.</p>
  
  <p>Now I want to create a variable that returns only x.</p>
  
  <pre><code>val result = addInt(3,4) for example
  </code></pre>
  
  <p>result would return (7,2) but I only want it to return 7. How can I do this? (Without changing the code of the function obviously).</p>