I have a List[(Int,Int)]
such that
{(1,5),(1,2),(1,7),(2,8),(2,3),(2,9),(3,10),(3,1),(3,12)}
What I want to do is to apply sum on every 2nd element of each (1,5),(1,2),(1,7)
2nd element of each (2,8),(2,3),(2,9)
and each (3,10),(3,1),(3,12)
such that we have a resultant:
List[Int]={14, 20, 23}