Skip to content

Instantly share code, notes, and snippets.

@SuzanneSoy
Created October 30, 2010 23:29
Show Gist options
  • Save SuzanneSoy/655868 to your computer and use it in GitHub Desktop.
Save SuzanneSoy/655868 to your computer and use it in GitHub Desktop.
Print for cyclic structures
(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