Skip to content

Instantly share code, notes, and snippets.

@pietromenna
Created April 6, 2015 21:14
Show Gist options
  • Save pietromenna/b9811081b28002447f9b to your computer and use it in GitHub Desktop.
Save pietromenna/b9811081b28002447f9b to your computer and use it in GitHub Desktop.
Clojure Loop Solution
(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