Skip to content

Instantly share code, notes, and snippets.

@Kuchitama
Created June 12, 2012 23:58
Show Gist options
  • Save Kuchitama/2920900 to your computer and use it in GitHub Desktop.
Save Kuchitama/2920900 to your computer and use it in GitHub Desktop.
Sample Answer for 4Clojure#20. I tried to use "recur".
;; kuchitama's solution to Penultimate Element
;; https://4clojure.com/problem/20
#(if (= 2 (count %))
(first %)
(recur (rest %)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment