Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save finitud/1861387 to your computer and use it in GitHub Desktop.
Save finitud/1861387 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