(also newbie here, butu here's my take)

append operates on LISTS. 'd or 'e is not a list.

You should do:

(append '(a b c) '(d) '(e))

Or, alternatively:

(append '(a b c) (list 'd 'e))

On Sun, Oct 18, 2015 at 1:08 AM, Jonathan Kelly <jonathan.ke...@gtaus.com.au
> wrote:

> Hi,
>
>
>
> Newbie trying to get into the lisp headspace.
>
>
>
> I was a bit surprised by this …
>
>
>
> : (append '(a b c) 'd 'e)
>
> -> (a b c . e)
>
>
>
> Is that right? Oh, and this?
>
>
>
> : (setq x (append '(a b c) 'e))
>
> -> (a b c . e)
>
> : x
>
> -> (a b c . e)
>
> : (append x 'f)
>
> -> (a b c . f)
>
>
>
> Jonathan.
>



-- 
*-- Frantisek Fuka*
(yes, that IS my real name)

-- My Personal homepage: www.fuxoft.cz
-- My Google+ profile: google.com/+fuxoft
-- My Telegram chat: telegram.fuxoft.cz

Reply via email to