Skip to content

Instantly share code, notes, and snippets.

Created February 19, 2012 00:14
Show Gist options
  • Save anonymous/1861385 to your computer and use it in GitHub Desktop.
Save anonymous/1861385 to your computer and use it in GitHub Desktop.
;; finitud's solution to Reverse a Sequence
;; https://4clojure.com/problem/23
#(if (empty? %2)
%1
(recur (conj %1 (last %2))
(butlast %2)))
[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment