From: Darren Teemull

Subject: flattening in lisp

Date: 1999-3-2 18:23

Hello, I'm a new user of Lisp, and I'm trying to work through a problem
I found in a book on Lisp, can anyone tell me how it might be possible
to flatten and then combine two lists using nothing but (cond), (listp),
(cons), (cdr), (car), (null) or (not), and maybe an if statement? For
example, if I passed the lists A = (a (b) c) and B = (d ((e) f)) as
parameters to the function, then it should return (a b c d e f). I know
that recursion is involved, but I can't seem to be able to do it without
using (append).

P.S. My Professor doesn't know either, as he is relatively new to Lisp
also.

Thanks in advance,
The Canadian rookie, DFT
Software Engineering student, University of Toronto