Created
June 12, 2012 23:58
-
-
Save Kuchitama/2920900 to your computer and use it in GitHub Desktop.
Sample Answer for 4Clojure#20. I tried to use "recur".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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