object Main extends App { val hoge = (1 to 3 map { a => 1 to 3 map { b => a + b } }).flatten System.out.println(hoge)}
Standard input is empty
Vector(2, 3, 4, 3, 4, 5, 4, 5, 6)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!