[gambit-list] explicit pp

Marc Feeley feeley at iro.umontreal.ca
Fri Jul 24 01:35:58 EDT 2009


On 24-Jul-09, at 12:56 AM, Stéphane Le Cornec wrote:

> Is there a way to explicitly pretty-print? Something like:
>
>> (display '(a XXX b c))
> (a
>   b c)
>>
>
> i.e. XXX outputs as some (newline) + spaces.

How about

 > (display '(a "\n  " b c))
(a
    b c)

I'm probably not understanding your question...  If you want to pretty  
print, why not use the pretty-print procedure?  The display procedure  
seems like the wrong choice for pretty printing...

Marc




More information about the Gambit-list mailing list