-1
我需要一些關於如何計算列表組合的代碼的解釋。球拍組合功能
(define combs L k)
(cond ((= 0 k)
'(()))
((null? L)
'())
(else
(append (map (λ (x) (cons (car L) x))
(combs (cdr L) (- k 1)))
(combs (cdr L) k))))))