Create Functional Programming Patterns in Scala and Clojure