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 ...

Get Scala for the Impatient now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.