Created
November 12, 2017 13:45
-
-
Save jougene/a8db124ca774fe9fad67dcc2bcf9bc62 to your computer and use it in GitHub Desktop.
clojure reverse list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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