By Nilanjan Raychaudhuri
This article is taken from the book Scala in Action. The author explains how to define a function and pass functions as a parameter to another function.

Defining functions (PDF)