Skip to content

Instantly share code, notes, and snippets.

@micrypt
Created February 7, 2012 01:58
Show Gist options
  • Save micrypt/1756593 to your computer and use it in GitHub Desktop.
Save micrypt/1756593 to your computer and use it in GitHub Desktop.
SICP Clojure notes
;; Iterative count
(defn count [sent]
(defn iter [wds result]
(if (empty? wds)
result
(iter (rest wds) (+ 1 result))))
(iter sent 0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment