Tuples are often used within collections but they must be handled in a specific way. For example, given the following list of tuples:
scala> val l = List(1 -> 2, 2 -> 3, 3 -> 4)
l: List[(Int, Int)] = List((1,2), (2,3), (3,4))
It may seem natural to add the elements together using im...