(scheme cxr)
(scheme cxr) - R7RS CXR Library
Extended car/cdr accessor procedures for nested pair structures. Provides all compositions of car and cdr from three to four levels deep (e.g., caaddr, cddddr).
For basic two-level accessors (caar, cadr, cdar, cddr), use (scheme base) or the prelude.
See: R7RS Small §6.4
Exports
caadrprocedureGet (car (car (cdr x))).
Re-exported from (sigil core)
cadarprocedureGet (car (cdr (car x))) - useful for alist value access.
Re-exported from (sigil core)
caddrprocedurecdadrprocedureGet (cdr (car (cdr x))).
Re-exported from (sigil core)
cdddrprocedureGet the tail after third element: (cdr (cdr (cdr x))).
(cdddr '(1 2 3 4 5)) ; => (4 5)Re-exported from (sigil core)
cadddrprocedureGet the fourth element: (car (cdr (cdr (cdr x)))).
(cadddr '(1 2 3 4 5)) ; => 4Re-exported from (sigil core)