title: How to combine two tuples in scala?
body: <p>I want to combine two tuples, for example</p>
  
  <p>My Tuples are:</p>
  
  <pre><code>(a,b)
  (a,c)
  (d,a)
  (d,c)
  </code></pre>
  
  <p>I want the combination as,</p>
  
  <pre><code>(a,b,c)                // Ist &amp; IInd tuple
  (a,b,d)                // Ist &amp; IIIrd tuple
  (a,b,d,c)              // Ist &amp; IVth tuple
  (a,c,d)                // IInd &amp; IIIrd tuple  ( IInd &amp; IVth is also same)
  </code></pre>
  
  <p>Here I initially combine the first tuple with second tuple, third tuple and finally last tuple. Then I take the second tuple and combine it with third tuple and fourth tuple. Finally I take third tuple and combine it with the remaining last tuple. Remember If we combine two tuples, if the same combination values are occur, remove the duplicate tuples</p>