Append in LISP

(define append (x y) 
         (cond ( (= '() x) (cons y '())) 
           (t (cons (car x) (append (cdr x) y))))) 

(append '(A B) 'C)?
 










'(A B C)


Last updated 2000/10/29
© J.A.N. Lee, 2000.