From: [Invalid-From-Line]
Subject: RE: howto setf a variable from a defined list?
Date: 
Message-ID: <fD8Pa.242538$V9.20387293@amsnews02.chello.com>
Hi Adam,

thanks for you reply but maybe i wasn't clear enough
There's no trouble for me creating any list.
The problem is that i need the contents of the list in another application.
example: now i have:
(setf *option-list* (1,1 2,2 3,3 4,4 ....)
COMMAND (OPTION *option-list*)
but i have to get rid of the hooks and make the result like 
COMMAND (OPTION 1,1 1,2 1,3 1,4 .....) and not like 
COMMAND (OPTION (1,1 1,2 1,3 1,4 .....))

Thanks again

From: Pascal Costanza
Subject: Re: howto setf a variable from a defined list?
Date: 
Message-ID: <bejacj$10he$1@f1node01.rhrz.uni-bonn.de>
··········@chello.nl wrote:
> Hi Adam,
> 
> thanks for you reply but maybe i wasn't clear enough
> There's no trouble for me creating any list.
> The problem is that i need the contents of the list in another application.
> example: now i have:
> (setf *option-list* (1,1 2,2 3,3 4,4 ....)
> COMMAND (OPTION *option-list*)
> but i have to get rid of the hooks and make the result like 
> COMMAND (OPTION 1,1 1,2 1,3 1,4 .....) and not like 
> COMMAND (OPTION (1,1 1,2 1,3 1,4 .....))

What Lisp is this? It doesn't look like Common Lisp...


Pascal

-- 
Pascal Costanza               University of Bonn
···············@web.de        Institute of Computer Science III
http://www.pascalcostanza.de  R�merstr. 164, D-53117 Bonn (Germany)
From: Adam Warner
Subject: RE: howto setf a variable from a defined list?
Date: 
Message-ID: <pan.2003.07.10.12.31.13.255826@consulting.net.nz>
Hi j.boonstr,

> Hi Adam,
> 
> thanks for you reply but maybe i wasn't clear enough
> There's no trouble for me creating any list.
> The problem is that i need the contents of the list in another application.
> example: now i have:
> (setf *option-list* (1,1 2,2 3,3 4,4 ....)

So what type of Lisp doesn't use QUOTE (') nor brackets to denote
nested lists?

> COMMAND (OPTION *option-list*)
> but i have to get rid of the hooks and make the result like 
> COMMAND (OPTION 1,1 1,2 1,3 1,4 .....) and not like 
> COMMAND (OPTION (1,1 1,2 1,3 1,4 .....))

In Common Lisp one uses APPEND:
(append '(OPTION) '("1,1" "1,2" "1,3" "1,4"))
(OPTION "1,1" "1,2" "1,3" "1,4")

Regards,
Adam