1 Introduction
2 A First Example
3 Programming with Actors and Messages
4 Expressions and Simple Functions4.1 Expressions And Simple Functions. . . . . 4.2 Parameters. . . . . . . . . . . . . . . . . . . 4.3 Conditional Expressions. . . . . . . . . . . 4.4 Example: Square Roots by Newton’s Method4.5 Nested Functions. . . . . . . . . . . . . . . 4.6 Tail Recursion. . . . . . . . . . . . . . . . .
5 First-Class Functions5.1 Anonymous Functions. . . . . . . . . . . . 5.2 Currying. . . . . . . . . . . . . . . . . . . . 5.3 Example: Finding Fixed Points of Functions5.4 Summary. . . . . . . . . . . . . . . . . . . . 5.5 Language Elements Seen So Far. . . . . .
6 Classes and Objects
7 Case Classes and Pattern Matching7.1 Case Classes and Case Objects. . . . . . . 7.2 Pattern Matching. . . . . . . . . . . . . . .
8 Generic Types and Methods8.1 Type Parameter Bounds. . . . . . . . . . . 8.2 Variance Annotations. . . . . . . . . . . . .