[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Printing circular lists
From: |
Alex Shinn |
Subject: |
Re: [Chicken-users] Printing circular lists |
Date: |
Wed, 04 Aug 2010 19:43:20 +0900 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (darwin) |
Taylor Venable <address@hidden> writes:
> If you're open to using a different method to do so, both
> the fmt and srfi-38 eggs provide such a means via fmt and
> write-with-shared-structure, respectively.
Note Chicken's SRFI-38 implementation also provides
`make-repl-support-shared-structure' to automatically print
results with `write-with-shared-structure':
$ csi -qR srfi-38
#;1> (make-repl-support-shared-structure)
#;2> (define a (list 1 2))
#;3> (set-cdr! a a)
#;4> a
#=0(1 . #0#)
#;5>
--
Alex