Skip to content

Instantly share code, notes, and snippets.

@crittermike
Created January 4, 2012 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crittermike/1560238 to your computer and use it in GitHub Desktop.
Save crittermike/1560238 to your computer and use it in GitHub Desktop.
(defn reverse-coll [coll]
(if (= 1 (count coll))
(coll)
(conj (reverse-coll (butlast coll)) (last coll))))
(reverse-coll [1 2 3 4 5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment