Created
April 6, 2015 21:14
-
-
Save pietromenna/b9811081b28002447f9b to your computer and use it in GitHub Desktop.
Clojure Loop Solution
This file contains hidden or 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
(fn [lst] (loop [characters 0, remaining lst] | |
(if (empty? remaining) | |
characters | |
(recur (inc characters) (rest remaining))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment