title: Can map function be applied to Tuple?
body: <p>I have a Tuple of type : </p>
  
  <pre><code>val data1 : (String , scala.collection.mutable.ArrayBuffer[(String , Int)]) = ( ("" , scala.collection.mutable.ArrayBuffer( ("a" , 1) , ("b" , 1) , ("a" , 1) ) ))  // , ("" , scala.collection.mutable.ArrayBuffer("" , 1)) )
  </code></pre>
  
  <p>When I attempt to map using : <code>data1.map(m =&gt; println(m))</code> I receive error : </p>
  
  <pre><code>Multiple markers at this line - value map is not a member of (String, scala.collection.mutable.ArrayBuffer[(String, 
   Int)]) - value map is not a member of (String, scala.collection.mutable.ArrayBuffer[(String, Int)])
  </code></pre>
  
  <p>Is it possible to use map function using Tuple accessor syntax : ._2 ? </p>
  
  <p>This type of syntax <code>data1.map(m._2 =&gt; println(m._2)))</code> does not compile</p>
  
  <p>Using this syntax I'm attempting to apply a map function to sum all the letters associated with the ArrayBuffer. So above example should map to -> ( (a , 2) , (b , 1) )</p>