fork download
  1. object Main extends App {
  2. // your code goes here
  3.  
  4. val x = (((0 until 5) zip (0 to 9 by 2)) :+ (5, 10)).reduce((x,y) => (x._1 + y._1, x._2 + y._2))
  5.  
  6. print(x)
  7. }
Success #stdin #stdout 0.35s 4382720KB
stdin
Standard input is empty
stdout
(15,30)