FP in Scala chapter notes.