All the examples of this chapter have been committed to the following Git repository:
If you want to run the code examples in this chapter, you need to clone this repository and import the project into IntelliJ. Each section has a corresponding Scala worksheet file—for instance, the next section's examples are in the lazyness.sc file.
The solutions to the exercises are given in these worksheets, and so it would be more profitable to you if you do not read them completely until you have tried to do the exercises.