Have a look at these scala snippets: if we have something like this:
List(List(1, 2), List(3, 4), List(5)) map (x => (x.size))
we can shorten it to:
List(List(1, 2), List(3, 4), List(5)) map ((_.size))
but, if we have something like this:
List(List(1, 2), List(3, 4), List(5)) map (x => (x.size, x.size))
why can't we shorten it to:
List(List(1, 2), List(3, 4), List(5)) map ((_.size, _.size))
?