Skip to content

Instantly share code, notes, and snippets.

Created December 7, 2011 17:06
Show Gist options
  • Save anonymous/1443613 to your computer and use it in GitHub Desktop.
Save anonymous/1443613 to your computer and use it in GitHub Desktop.
;; nchapon's solution to Count a Sequence
;; https://4clojure.com/problem/22
#(loop [coll % acc 0] (if (nil? (first coll)) acc (recur (rest coll) (inc acc))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment