Skip to content

Instantly share code, notes, and snippets.

@adambard
Created March 20, 2012 05:06
Show Gist options
  • Save adambard/2131551 to your computer and use it in GitHub Desktop.
Save adambard/2131551 to your computer and use it in GitHub Desktop.
Toy clojure factorial (for test-app)
(ns test-app.core)
(defn fact [x] (reduce * (range 1 (inc x))))
(fact 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment