如何仅使用球拍中的lambda进行递归?

问题描述 投票:0回答:1

我需要一些帮助,试图弄清楚如何仅使用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))

functional-programming scheme lisp racket
1个回答
0
投票

仅使用lambda递归?

© www.soinside.com 2019 - 2024. All rights reserved.