当我为这段代码做(访问医生晚餐时间)时:
(define (visit-doctor name)
(if (equal? name 'suppertime) (end-session)
((write-line (list 'hello name))
(write-line '(what seems to be the trouble?))
(doctor-driver-loop name initial-earlier-response))))
(define (end-session) (write-line '(the doctor is done seeing patients today)))
它给了我这个错误:
申请:不是程序;期望一个可以应用于给定参数的过程:#arguments...:##