Skip to content

Instantly share code, notes, and snippets.

@LispyAriaro
Created February 24, 2015 22:49
Show Gist options
  • Save LispyAriaro/07c7d9782c7e95e8ed85 to your computer and use it in GitHub Desktop.
Save LispyAriaro/07c7d9782c7e95e8ed85 to your computer and use it in GitHub Desktop.
(fn [lst]
(letfn [(my-fn [lst so-far]
(if (empty? lst)
so-far
(recur (rest lst) (inc so-far))))]
(my-fn lst 0)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment