Source Code for  Functional Programming Patterns in Scala and Clojure