I'm trying to learn lisp and as i'm making my first steps i got stuck.
How can i get c element form following list: (a b (c.d))
I've tried: (caar (last '(a b (c.d))))
but it returns c.d and not only c
This however works if there are spaces between c, . , d ie: (caar (last '(a b (c . d))))
The problem i'm trying to resolves has the list specified without spaces. Can that be done or it's a typo in the exercise?
Thanks.
LE: Uisng GNU Clisp http://clisp.cons.org/ Is it possible that the issue it's caused by the implementation?