tags:

views:

102

answers:

3

Hello. This is my second quick-and-silly question about LISP, but I am kind of stuck. I need to access all the nodes in a list with several levels. I need something like:

>> (get-symbols '(A (B (C D) E )))
(A B C D E)

I don't care about the order. How would you do that? I prefer code intuitivity rather than efficency.

Thanks

+4  A: 

What you need is the flatten function for lists. Look it up.

Gintautas Miliauskas