From: Charles-Albert Lehalle
Subject: list problem from a newbie
Date: 
Message-ID: <3472C7DA.5344@europe.j18.renault.fr>
Hi,

I have lists like (a b c d) called x and (e f) called y and I want to
put simply (a b c d e f) in x, I tried things like :
(set 'x (list x y)) but it always returns ((a b c d)(e f)).

Thanx
From: Valentino Kyriakides
Subject: Re: list problem from a newbie
Date: 
Message-ID: <349E9525.3759@lavielle.com>
Charles-Albert Lehalle wrote:

> 
> I have lists like (a b c d) called x and (e f) called y and I want to
> put simply (a b c d e f) in x, I tried things like :
> (set 'x (list x y)) but it always returns ((a b c d)(e f)).
> 

First you should make yourself clear what the above (list x y) does if
x and y are allready lists.

Then I would suggest to read a good CL introduction (for example:
"ANSI Common Lisp" from Paul Graham) and take a look at the functions
'union', 'intersection', 'append' etc.

For the moment play around with: (union x y) and (append x y)

-- 
Valentino Kyriakides

Lavielle EDV Systemberatung GmbH & Co.  Tel.: +49(0)40 / 65 80 8 - 997
Lotharstrasse 2b, D-22041 Hamburg, Germany  Fax.:  +49(0)40 / 65 808-202
http://www.lavielle.com/                    mailto: ยทยทยทยท@lavielle.com