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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.