Since functions are first-class, we can pass them just as we do for any argument.
A function that accepts a function as an argument is a higher-order function.
The Scala library includes some higher-order functions
people.filter(_.age > 20) people.sort((p1, p2) => p1.name < p2.name) (1 to 15).filter(even)