From: Dragos-Anton Manolescu
Subject: Beginner question
Date: 
Message-ID: <DRAGOS.95Sep10121648@sweetbay.will.uiuc.edu>
Hi all,

I'm new to Lisp, therefore this might be a trivial question ;-) Given a
list like '(+ 1 (* n n)), I would like to generate another one by replacing
each leaf from the previous, sequentially, with the elements of another list,
say '(x y). Therefore, the result should be something like:

((+ x (* n n)) (+ y (* n n)) (+ 1 (* x n)) (+ 1 (* y n)) (+ 1 (* n x))
(+ 1 (* n y)))

Can you suggest how can I accomplish this?


Thank you in advance,
Dragos
From: Stefan Monnier
Subject: Re: Beginner question
Date: 
Message-ID: <431gta$jlh@info.epfl.ch>
In article <····················@sweetbay.will.uiuc.edu>,
Dragos-Anton Manolescu <······@sweetbay.will.uiuc.edu> wrote:
] ((+ x (* n n)) (+ y (* n n)) (+ 1 (* x n)) (+ 1 (* y n)) (+ 1 (* n x))
] (+ 1 (* n y)))
] 
] Can you suggest how can I accomplish this?

When is the academic year beginning again ?


	Stefan