Guest User

Untitled

a guest
Jun 28th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (def factorial
  2.   (fn [n]
  3.     (loop [cnt n acc 1]
  4.        (if (zero? cnt)
  5.             acc
  6.           (recur (dec cnt) (* acc cnt))))))
Add Comment
Please, Sign In to add comment