(defun c:test( / a b c) (setq a '((1 "a") (2 "b") (3 "c"))) (setq b '(2 (21 "aa") (22 "bb") (23 "cc"))) (setq b (cons (assoc 2 a) (cdr b))) (setq a (subst (cons 2 b) (assoc 2 a) a)) (setq a (mapcar '(lambda(e) (if (/= (car e) 2) (list e) (cdr e))) a)) (apply 'append a) )