Studying cons
, cdr
and car
for list processing, I tried the following:
(cadr '('(1) '(2))) '(2)
which gives the second item in the list, as expected. Considering the following:
(cdadr '('(1) '(2))) ((2))
How are the data consistent with the code and still give no errors?
How was this evaluated?
cdr on '(2) should give nil what is. Why not higher?
[I am new to clisp and stackoverflow, so forgive me.]
source share