Skip to content

Instantly share code, notes, and snippets.

@jacksonh
Created June 21, 2018 01:40
Show Gist options
  • Save jacksonh/8898e431c726e35618f9cfe0b38ca6cf to your computer and use it in GitHub Desktop.
Save jacksonh/8898e431c726e35618f9cfe0b38ca6cf to your computer and use it in GitHub Desktop.
(defn exp [x n]
(if (= n 0) 1
(* x (exp x (- n 1)))
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment