next up previous contents
Next: Basic utility abstractions for Up: Basic abstractions for pairs Previous: Selector `cdr'   Contents

Application of abstractions for pairs


(define l1 (cons two three))
                             --> ok
;
(ndisp! (car l1))
                             --> 2
;
(ndisp! (cdr l1))
                             --> 3
;
(define l2 (cons two (cons three four)))
                             --> ok
;
(ndisp! (car (cdr l2))
                             --> 3
;
(ndisp! (cdr (cdr l2))
                             --> 4



Georg P. Loczewski 2004-03-05


Impressum und Datenschutz