Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!travelers.mail.cornell.edu!news.kei.com!newshost.marcam.com!usc!cs.utexas.edu!utnut!utcsri!cdf.toronto.edu!news
From: Darrell Grainger <a324grai@cdf.toronto.edu>
Subject: formatting output of a list
X-Sender: a324grai@eddie
Content-Type: TEXT/PLAIN; charset=US-ASCII
Message-ID: <Pine.SOL.3.90.951008002844.5598A-100000@eddie>
Sender: news@cdf.toronto.edu (Usenet News)
Nntp-Posting-Host: eddie
Organization: University of Toronto Computing Disciplines Facility
Mime-Version: 1.0
Date: Sun, 8 Oct 1995 04:44:11 GMT
Lines: 24

Greetings,

	I am trying to format the output of a procedure in order to make it
more readable. The current output of the procedure is a list of lists with
no formatting at all. What I want to do is put a linefeed after each list.
For example, I currently have:

((((P . #T) (Q . #T)) #T) (((P . #T) (Q . #F)) #F) (((P . #F) (Q . #T)) #T) (((P . #F) (Q . #F)) #T))

and I want to have:

((((P . #T) (Q . #T)) #T)
 (((P . #T) (Q . #F)) #F)
 (((P . #F) (Q . #T)) #T)
 (((P . #F) (Q . #F)) #T))

I have a procedure PP which is close but it puts a #T at the end of the
output and doesn't line up the second and subsequent lines with the first
line.

Darrell Grainger
Toronto, Ontario, Canada
email: an874@torfree.net or current

