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: Christian Kellermann
Subject: Re: [Chicken-users] Printing circular lists
Date: Wed, 4 Aug 2010 09:59:26 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hi there!

* Taylor Venable <address@hidden> [100803 23:39]:
> On Tue, Aug 3, 2010 at 4:03 PM, Jeronimo Pellegrini <address@hidden> wrote:
> > I was wondering how to get Chicken to print cyclic structures
> > using references to previous elements instead of looping, like
> > this, for example (this is what Gauche does on the REPL, and
> > what Guile's display implementation does):
> >
> >  > a
> >  #0=(1 . #0#)
> >
> > Is there some way to configure Chicken to do that? (I've searched
> > the wiki but found nothing)
> 
> 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.

Also note that csi's describe command will show you the circular
structure.  Maybe the notation is not the best atm but it seems not
many people use this anyway (maybe because out of ignorance of this
feature).

Kind regards,

Christian



reply via email to

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