我需要一些帮助来弄清楚如何仅使用 lambda 使下面的代码递归。
(define (mklist2 bind pure args)
(define (helper bnd pr ttl lst)
(cond [(empty? lst) (pure ttl)]
[else (define (func t) (helper bnd pr (append ttl (list t)) (rest lst)))
(bind (first lst) func)])
)
(helper bind pure empty args))
Run Code Online (Sandbox Code Playgroud)