szymon <szymon@dev.null> wrote:
+---------------
| ; newbie way to build a dot-list :] i (know about `list*')
| [1]> (prog1 #1='(1 2 3) (rplacd (last #1#) 'end))
| (1 2 3 . END)
+---------------
Newbie might find it helpful [as part of the path to becoming non-newbie]
to read the CLHS on the prohibitions against modifying literal program data,
and then perhaps write it this way:
> (let ((x (list 1 2 3)))
(rplacd (last x) 'end)
x)
(1 2 3 . END)
>
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607