add type hinting to Clojure implementation