Skip to content

Instantly share code, notes, and snippets.

Created February 4, 2012 18:39
Show Gist options
  • Save anonymous/1739393 to your computer and use it in GitHub Desktop.
Save anonymous/1739393 to your computer and use it in GitHub Desktop.
;; finitud's solution to Nth Element
;; https://4clojure.com/problem/21
(fn [x n]
(if (= n 0) (first x)
(recur (rest x) (- n 1))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment