next up previous contents
Next: Checking for an empty Up: Basic utility abstractions for Previous: Basic utility abstractions for   Contents


Abstraction for the end of a list: `nil'

This abstraction has already been introduced above. It appears again here to show its usage when building a list.

(define nil 
   (lambda (f)
      true))


(define l1 
   (cons two (cons three  nil)))
;
(ldisp! l1)
                             --> 2
                                 3
                                 (lambda(l) true)



Georg P. Loczewski 2004-03-05


Impressum und Datenschutz