Chapter 2. Control Structures and Functions

Topics in This Chapter image

2.1 Conditional Expressions — page 14

2.2 Statement Termination — page 15

2.3 Block Expressions and Assignments — page 16

2.4 Input and Output — page 17

2.5 Loops — page 18

2.6 Advanced for Loops and for Comprehensions — page 19

2.7 Functions — page 20

2.8 Default and Named Arguments image — page 21

2.9 Variable Arguments image — page 22

2.10 Procedures — page 23

2.11

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.