就是这三个函数一拼就行了
 - (defun tt(lst / a lst1 tmp)(while lst
- (setq tmp (vl-remove-if-not '(lambda (x) (= (setq a (caar lst)) (car x)))
- lst)
- lst1 (cons (list a
- (cadar tmp)
- (apply '+ (mapcar 'caddr tmp))
- (apply '+ (mapcar 'cadddr tmp)))
- lst1)
- lst (vl-remove-if '(lambda (x) (= a (car x))) lst)))
- (vl-sort lst1'(lambda(x y)(<(car x)(car y)))))
|