Scala Cookbook: Recipes for Object-Oriented and Functional Programming Chp09 Recipe 9.3 Functions as Parameters