Scala Book
Control Structures
Language
Outdated Notice
Info: JavaScript is currently disabled, code tabs will still work, but preferences will not be remembered.
Scala has the basic control structures you’d expect to find in a programming language, including:
- if/then/else
forloops- try/catch/finally
It also has a few unique constructs, including:
matchexpressionsforexpressions
We’ll demonstrate these in the following lessons.