私は新しい計画者です。たぶん、この質問はとても簡単です。しかし、それは本当に私を悩ませます。
手順を定義しました
(define insertL
(lambda (new old lat)
(cond
((null? lat) '())
((eq? old (car lat)) (cons new lat))
(else (cons (car lat) (insertL (cdr lat)))))))
それから私はそれを呼びます
> (insertL 2 3 '(1 2 3))
例外が発生しました
Exception: incorrect number of arguments to #<procedure insertL>
なんで?