In Scala 2.8:
val baz = (foo, bar).zipped map (_ + _)
And it works for more than two operands in the same way. I.e. you could then follow this up with:
(foo, bar, baz).zipped map (_ * _ * _)
In Scala 2.8:
val baz = (foo, bar).zipped map (_ + _)
And it works for more than two operands in the same way. I.e. you could then follow this up with:
(foo, bar, baz).zipped map (_ * _ * _)