Created
March 20, 2012 05:06
-
-
Save adambard/2131551 to your computer and use it in GitHub Desktop.
Toy clojure factorial (for test-app)
This file contains 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
(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