Page 176 Table of Contents Index Page 178
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E





Chapter 20

Text Formatting

20.1 Textual List Formatting

=> format-textual-list sequence printer &key stream separator conjunction [Function]
Outputs the sequence of items in sequence as a "textual list". For example, the list (1 2 3 4)
might be printed as


1, 2, 3, and 4


printer is a function of two arguments: an element of the sequence and a stream; it has dynamic
extent. It is called to output each element of the sequence.

stream specifies the output stream. The default is *standard-output*.

The separator and conjunction arguments provide control over the appearance of each element
of the sequence and over the separators used between each pair of elements. separator is a string
that is output after every element but the last one; the default for separator is ", " (that is,
a comma followed by a space). conjunction is a string that is output before the last element.
The default is nil, meaning that there is no conjunction. Typical values for conjunction are the
strings "and" and "or".

20.2 Indented Output

=> indenting-output (stream indentation &key (move-cursor t)) &body body [Macro]
Binds stream to a stream that inserts whitespace at the beginning of each line of output produced
by body, and then writes the indented output to the stream that is the original value of stream.


Page 176 Table of Contents Index Page 178
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E