有人可以帮助解释原因吗
(define gg (lambda (ff x) (ff x x x))
拥有所有这些属性?感谢
gg requires two arguments when called
gg's first argument should be a function
gg's first argument should be a function that accepts 3 arguments
答案 0 :(得分:5)
gg
是一个有两个参数的lambda ff
和x
。ff
用于lambda中的(ff x x x)
表达式,因此ff
应该是可调用的。(ff x x x)
有三个参数,因此ff
应该是一个带三个参数的函数。