5 lines
77 B
Clojure
5 lines
77 B
Clojure
|
|
(defn factorial [x]
|
||
|
|
(if (< x 2)
|
||
|
|
1
|
||
|
|
(*' x (factorial (dec x)))))
|