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

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