You are previewing Scala for the Impatient.

Scala for the Impatient

Cover of Scala for the Impatient by Cay S. Horstmann Published by Addison-Wesley Professional
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 ...

The best content for your career. Discover unlimited learning on demand for around $1/day.