Chapter 22. Delimited Continuations

Topics in This Chapter image

22.1 Capturing and Invoking a Continuation — page 320

22.2 The “Computation with a Hole” — page 321

22.3 The Control Flow of reset and shift — page 322

22.4 The Value of a reset Expression — page 323

22.5 The Types of reset and shift Expressions — page 323

22.6 CPS Annotations — page 325

22.7 Turning a Recursive Visit into an Iteration — page 326

22.8 Undoing Inversion of Control — page 329

22.9 The CPS Transformation — page 332

22.10 Transforming Nested Control Contexts — page 334

Exercises — page 336

Continuations are a powerful construct that allows you to implement ...

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.