Scala Cookbook: Recipes for Object-Oriented and Functional - Recipe 9.6 Partially Applied Functions