CAR, CDR, and their combinations
> (setq x '(a b c d))
(A B C D)
> (car x)
A ; CAR is equivalent to FIRST
> (rest x)
(B C D) ; CDR is equivalent to REST.
> (cdr (cdr x))
(C D)
> (cddr x)
(C D)
> (caddr x)
C ; CADDR is equivalent to THIRD
Previous slide
Next slide
Back to first slide
View graphic version