Created
October 30, 2010 23:29
-
-
Save SuzanneSoy/655868 to your computer and use it in GitHub Desktop.
Print for cyclic structures
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
(defun print-env-stack (env-stack) | |
(let ((*print-circle* t)) | |
(if (atom env-stack) | |
nil | |
(progn (format t "~&~a: " (caar env-stack)) | |
(mapcar (lambda (b) (format t "~& ~w = ~w" (car b) (cdr b))) | |
(cdar env-stack)) | |
(print-env-stack (cdr env-stack)))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment