Ports of some Clojure functions to elisp