Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一些帮助来理解这段代码的作用。我不确定fcombine变量的作用是什么?有人可以给我介绍一下代码在做什么吗?
fcombine
(define (reduce fcombine L) (cond ((null? (cdr L)) (car L)) (#t (fcombine (car L) (reduce fcombine (cdr L))))))
您可以查看 CLHS减少功能规范。
您展示的函数是完整规范的部分实现,只有函数和序列参数。