Is there an equivalent to Common Lisp * print-circle * in a Schema?

I am working on a deque in Scheme (SICP 3.23 exercise) and I have a simple double-linking implementation that I would like to test, but I cannot figure out how to print a circular list in a circuit (mit circuit and mzscheme / racket).

CL has a circle for printing flags for this kind of thing, is there something equivalent in the Scheme? I tried the "c-output-on-truncated string", but this doesn't seem to be available in the mit circuit assembly sourced from Macports, although I think it should be? Is there a way to get this procedure in the REPL, do I need to include something?

http://sicp.ai.mit.edu/Fall-2003/manuals/scheme-7.5.5/doc/scheme_15.html

Thank!

+3
source share
1

, . Racket print-graph. . SICP Racket, SICP.

+3

Source: https://habr.com/ru/post/1767711/


All Articles