Created
July 1, 2014 21:15
-
-
Save iain/741b93d63acf0f38c8f9 to your computer and use it in GitHub Desktop.
From Computerphile video: http://www.youtube.com/watch?v=i7sm9dzFtEI
This file contains hidden or 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
(defn ack [m n] | |
(if (= m 0) | |
(+ n 1) | |
(if (= n 0) | |
(ack (- m 1) 1) | |
(ack (- m 1) (ack m (- n 1)))))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment