port of DatZach's andylator program to Clojure