1.3 Notational conventions and syntax

1.3.4 Examples and code

The examples in this guide represent what is displayed on the screen during interactions with Lisp. Examples are printed in a fixed-width font. The Common Lisp prompt is given by>. The expression that follows it displays what you have entered at the keyboard. In some examples, this expression is followed by the response of the Lisp system:

>(defun add-one (x) 
   (1+ x)) 
ADD-ONE 

Lisp code in this guide is in lowercase. In general, the Lisp reader converts symbols into uppercase, and the Lisp system displays its responses in uppercase. You can write programs in either uppercase or lowercase, or a combination of the two, whichever you prefer.

Note: Some loop constructs are used in examples before they are discussed in the text. Every attempt has been made to use such constructs in ways that do not obscure the point of the example. See the index to locate more information about any construct that is unfamiliar to you.


The Loop Facility - 9 SEP 1996

Generated with Harlequin WebMaker