Skip to content

Instantly share code, notes, and snippets.

@jougene
Created November 12, 2017 13:45
Show Gist options
  • Save jougene/a8db124ca774fe9fad67dcc2bcf9bc62 to your computer and use it in GitHub Desktop.
Save jougene/a8db124ca774fe9fad67dcc2bcf9bc62 to your computer and use it in GitHub Desktop.
clojure reverse list
(fn [l]
((fn [l acc]
(if (empty? l)
acc
(recur (rest l) (conj acc (first l)))))
l `()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment