Chapter 21. Implicits

Topics in This Chapter image

21.1 Implicit Conversions — page 306

21.2 Using Implicits for Enriching Existing Libraries — page 306

21.3 Importing Implicits — page 307

21.4 Rules for Implicit Conversions — page 308

21.5 Implicit Parameters — page 309

21.6 Implicit Conversions with Implicit Parameters — page 310

21.7 Context Bounds — page 311

21.8 Evidence — page 312

21.9 The @implicitNotFound Annotation — page 313

21.10 CanBuildFrom Demystified — page 314

Exercises — page 316

Implicit conversions and implicit parameters are Scala’s power tools that do useful work behind the scenes. In this chapter, you will ...

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.