O'Reilly logo

Interpreting LISP: Programming and Data Structures, Second Edition by Gary D. Knott

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Gary D. Knott 2017

Gary D. Knott, Interpreting LISP, 10.1007/978-1-4842-2707-7_10

10. List Notation

Gary D. Knott

(1)Civilized Software Inc., Silver Spring, Maryland, USA

Some forms of nonatomic S-expressions arise so frequently there is a special notation for them. A dotted-pair of the form ( S 1 . ( S 2 . (· · · . ( S k . NIL)· · ·))) where S 1, S 2, . . . , S k are all S-expressions is called a list and is written as ( S 1 S 2 ... S k ), which is the sequence of S-expressions S 1, S 2, . . . , S k written with intervening blanks and enclosed in parentheses. There is no confusion with dot notation since there are no dots between the S i elements in the list. There may, of course, be dots within some or all of the elements S 1, . . . , S

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required