O'Reilly logo
  • Yasser Bouhamria thinks this is interesting:

for {i <- 1 to10}
println(i)

From

Cover of Beginning Scala, Second Edition

Note

needs a space between to and 10