Subject: Re: :)
From: rpw3@rpw3.org (Rob Warnock)
Date: Tue, 16 Mar 2004 09:58:14 -0600
Newsgroups: comp.lang.lisp
Message-ID: <t5WcnfBOQ9yLucrd3czS-g@speakeasy.net>
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