Created
July 27, 2013 17:04
-
-
Save g000001/6095497 to your computer and use it in GitHub Desktop.
無限再帰を止める方法
This file contains 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
;;; 無限再帰を止める方法 | |
(def foo (n) | |
(prn n) | |
(cl:sleep 1) | |
(foo (+ 1 n))) | |
(foo 0) | |
;>>> 0 | |
;>>> 1 | |
... | |
;;; 再定義 | |
(def foo (n)) | |
;;; 止まる |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment