cl:nconc   scheme


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

Implementation

(define cl:nconc
      (lambda args
  (cond ((null? args) '())
        ((null? (cdr args)) (car args))
        ((null? (car args)) (apply cl:nconc (cdr args)))
        (else
         (set-cdr! (last-pair (car args))
       (apply cl:nconc (cdr args)))
         (car args)))))


Back to Index