|
There isn't really a function called apval in the old LISP interpreter. What you see on the top of page 71 is a very clumsy mixture of functional notation with something else. apval is some weird variable whose value is set by get, while it returns a boolean value. You can assume that the get always reaturns false, so this clause never gets executed.
maplist is used in the definition of evlis. It applies a given function to each member of a list. But you can just take the value of evlis directly---it evaluates each member of a list.
Since your example only needs to evaluate lambdas, none of the weird clauses in the definition is relevant. The interesting mystery is how standard built-in functions, such as car, are invoked. In ancient LISP terminology, they are SUBRs, and you can see the two clauses that handle them. These clauses are rather bizarre looking. You can just assume that they apply the standard functions correctly. The structurally goofy thing is that the definitions of the standard built-in functions is repeated in both apply and eval. This is another symptom of the failure to really understand evaluation in the late 1950s at MIT.
Mike O'D.
|