Combinations with repetitions: Difference between revisions
Content added Content deleted
Line 1,200: | Line 1,200: | ||
(define combinations |
(define combinations |
||
(lambda (lst k) |
(lambda (lst k) |
||
(cond (( |
(cond ((= k 0) '(())) |
||
(( |
((null? lst) '()) |
||
(else |
(else |
||
(append |
(append |