Created
December 7, 2011 17:06
-
-
Save anonymous/1443613 to your computer and use it in GitHub Desktop.
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
;; 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