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


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. repe
\begin{lstlisting}[language=Scm]{}
(define nil (lambda (f)
true))
\end{lstlisting}


\begin{lstlisting}[language=Scm]{}
(define l1 (cons two (cons three nil)))
;
(ldisp! l1)
--> 2
3
(lambda(l) true)
\end{lstlisting}


domain access counter Georg P. Loczewski 2004-03-05