cxr.scm 596 B

12345678910111213141516171819
  1. (define (caar x) (car (car x)))
  2. (define (cadr x) (car (cdr x)))
  3. (define (cdar x) (cdr (car x)))
  4. (define (cddr x) (cdr (cdr x)))
  5. (define (caaar x) (car (car (car x))))
  6. (define (caadr x) (car (car (cdr x))))
  7. (define (cadar x) (car (cdr (car x))))
  8. (define (caddr x) (car (cdr (cdr x))))
  9. (define (cdaar x) (cdr (car (car x))))
  10. (define (cdadr x) (cdr (car (cdr x))))
  11. (define (cddar x) (cdr (cdr (car x))))
  12. (define (cdddr x) (cdr (cdr (cdr x))))
  13. (define (cadddr x) (car (cdddr x)))
  14. (define (cddddr x) (cdddr (cdr x)))
  15. (define (cadadr x) (cadar (cdr x)))
  16. (define (cddadr x) (cdr (cdr (car (cdr x)))))