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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.