Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save finitud/1739475 to your computer and use it in GitHub Desktop.
Save finitud/1739475 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