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

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