[plt-scheme] What am I looking at?

From: Robby Findler (robby at cs.uchicago.edu)
Date: Thu Mar 3 11:34:09 EST 2005

At Thu, 3 Mar 2005 11:22:02 -0500, Eli Barzilay wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> On Mar  3, Blake McBride wrote:
> > MzScheme version 299.26
> > 
> > I am looking at the contents of a variable and I don't understand
> > the notation.  I see things like #7= and #2# which make no sense to
> > me.  I do understand vector and list notation but that's not all I'm
> > seeing as follows:
> > [...]
> 
> Search for `print-graph' in the help desk.

Also, you may find the print-convert library helpful. It prints
circular structures using a letrec-like notation that, in some cases,
can be easier to read:

  > (require (lib "pconvert.ss"))
  > (constructor-style-printing #t)
  > (define x '(1 . #f))
  > (set-cdr! x x)
  > (begin (write (print-convert x)) (newline))
  (shared ((-0- (cons 1 -0-))) -0-)

Robby



Posted on the users mailing list.