Solutions to exercises from the book Functional Programming for the Object-Oriented Programmer https://leanpub.com/fp-oo