chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Printing circular lists


From: Jeronimo Pellegrini
Subject: Re: [Chicken-users] Printing circular lists
Date: Wed, 4 Aug 2010 08:32:02 -0300
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Aug 04, 2010 at 07:43:20PM +0900, Alex Shinn wrote:
> 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> 

Thanks Alex, Taylor and Christian for your help!
Debugging my cycles is easier now. :-)

J.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]