cdrreturns the tail of a list, which is a list (assuming the input is a list, not a cons cell). You probably want to use it instead cadr(short for (car (cdr foo))). You can do:
(map car lst) ; '(x y z)
(map cadr lst) ; '(1 2 3)
( mapcalls to apply this function to each element in the list).
source
share