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.
我已经编写了一些代码,但它不起作用,因为add1我在 Scheme 中使用的函数不适用于 R5RS。add1R5RS可以替代什么?
add1
过程add1很简单,你可以自己实现:
(define (add1 x) (+ x 1))
迟到的答案,但另一种选择是(使用 lambdas) ..
(define add1 (lambda (x) (+ x 1)))