Skip to content

Instantly share code, notes, and snippets.

Created May 13, 2012 18:23
Show Gist options
  • Save anonymous/2689615 to your computer and use it in GitHub Desktop.
Save anonymous/2689615 to your computer and use it in GitHub Desktop.
;; jbochi's solution to Greatest Common Divisor
;; https://4clojure.com/problem/66
(fn gcd [a, b]
(if (= b 0)
a
(gcd b (mod a b))
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment