Skip to content

Instantly share code, notes, and snippets.

@melklein
Created June 29, 2016 19:04
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 melklein/e862e39d19a0c240580c8aec9d250a57 to your computer and use it in GitHub Desktop.
Save melklein/e862e39d19a0c240580c8aec9d250a57 to your computer and use it in GitHub Desktop.
(fn [my-seq]
((fn [rest-seq result]
(if (= 0 (count rest-seq))
result
(recur (butlast rest-seq) (conj result (last rest-seq)))))
my-seq []))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment