Skip to content

Instantly share code, notes, and snippets.

@arthurmco
Created February 14, 2018 02:49
Show Gist options
  • Save arthurmco/417c3986c0b2785bcc361697d7f7517f to your computer and use it in GitHub Desktop.
Save arthurmco/417c3986c0b2785bcc361697d7f7517f to your computer and use it in GitHub Desktop.
small clojure factorial
(defn factorial [num]
(reduce * (map inc (range num))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment