multi-list-combination-2   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/scheme.xtm

Implementation

;; USE multi-set-combination (below) to access this function
(define multi-list-combination-2
  (lambda args
    (if (null? args)
  args
  (flatten-1 (map (lambda (k)
        (let ((r (apply multi-list-combination-2 (cdr args))))
          (if (null? r)
        k
        (map (lambda (j)
               (list k j))
             r))))
      (car args))))))


Back to Index