Cover page by Cay S. Horstmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

Chapter 12. Higher-Order Functions

Topics in This Chapter image

12.1 Functions as Values — page 143

12.2 Anonymous Functions — page 144

12.3 Functions with Function Parameters — page 145

12.4 Parameter Inference — page 146

12.5 Useful Higher-Order Functions — page 146

12.6 Closures — page 148

12.7 SAM Conversions — page 149

12.8 Currying — page 149

12.9 Control Abstractions — page 150

12.10 The return Expression — page 152

Exercises — page 152

Scala mixes object orientation with functional features. In a functional programming language, functions are first-class citizens that can be passed around and manipulated just like any other ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required