O'Reilly logo
  • ssfe ssfe thinks this is interesting:

val doubler: Int => Int = _ * 2

From

Cover of Learning Scala

Note

val doubler: Int => Int = (x: Int) => x * 2;
val doubler = (x: Int) => x * 2