O'Reilly logo
  • saeed Abooleet thinks this is interesting:

// filter the items in a list scala> val nums = List(1,2,3,4,5).filter(_ < 4) nums: List[Int] = List(1, 2, 3)

From

Cover of Scala Cookbook

Note

Filter