fork download
  1. object Main extends App {
  2. // your code goes here
  3. 0 to 10 map(_ * 2) foreach(println)
  4.  
  5. 0.to(10).map(x => x * 2).foreach(println)
  6. }
Success #stdin #stdout 0.38s 2181632KB
stdin
Standard input is empty
stdout
0
2
4
6
8
10
12
14
16
18
20
0
2
4
6
8
10
12
14
16
18
20