Exercises from the excellent book Functional Programming in Scala.