lambda
(define (eval-lambda exp env) ; exp = (lambda params body)
  (let ((params (cadr exp))
        (body   (caddr exp)))
    (list *lambda* params body env)))
input  > (lambda (x) (+ x 1))
output : ((lambda) (x) (+ x 1) (((car (primitive) car)...

一覧 前へ 次へ