有人可以解释一下 lambda 在方案中的工作原理吗?例如它是如何在这里工作的:
(define (prepend-every prefix sent)
(every (lambda (wd) (word prefix wd)) sent))
或者在这里:
(define (first-last sent)
(keep (lambda (wd) (equal? (first wd) (last wd))) sent))
> (first-last '(california ohio nebraska alabama alaska massachusetts))
'(OHIO ALABAMA ALASKA)