Given the following list of tuples...
val list = List((1, 2), (1, 2), (1, 2))
... how do I sum all the values and obtain a single tuple lik
Very easy: (list.map(_._1).sum, list.map(_._2).sum).
(list.map(_._1).sum, list.map(_._2).sum)