A.5 CxR Library

The (scheme cxr) library exports twenty-four procedures which are the compositions of from three to four car and cdr operations. For example caddar could be defined by

(define caddar
  (lambda (x) (car (cdr (cdr (car x)))))).

The procedures car and cdr themselves and the four two-level compositions are included in the base library. See Pairs and lists.

caaaarcaaadr
caaarcaadar
caaddrcaadr
cadaarcadadr
cadarcaddar
cadddrcaddr
cdaaarcdaadr
cdaarcdadar
cdaddrcdadr
cddaarcddadr
cddarcdddar
cddddrcdddr