
(/VERSIONCHECK 2) 

(DEFPARAMETER |AssociationListAggregate;CAT| 'NIL) 

(DEFPARAMETER |AssociationListAggregate;AL| 'NIL) 

(DEFUN |AssociationListAggregate| (&REST #0=#:G1818)
  (LET (#1=#:G1819)
    (COND
      ((SETQ #1#
             (|assoc| #2=(|devaluateList| #0#)
                      |AssociationListAggregate;AL|))
       (CDR #1#))
      (T (SETQ |AssociationListAggregate;AL|
               (|cons5| (CONS #2#
                              (SETQ #1#
                                    (APPLY
                                     #'|AssociationListAggregate;| #0#)))
                        |AssociationListAggregate;AL|))
         #1#)))) 

(DEFUN |AssociationListAggregate;| (|t#1| |t#2|)
  (PROG (#0=#:G1817)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1| |t#2|)
                             (LIST (|devaluate| |t#1|)
                                   (|devaluate| |t#2|)))
                       (|sublisV|
                           (PAIR '(#1=#:G1816)
                                 (LIST '(|Record| (|:| |key| |t#1|)
                                         (|:| |entry| |t#2|))))
                           (COND
                             (|AssociationListAggregate;CAT|)
                             ('T
                              (LETT |AssociationListAggregate;CAT|
                                    (|Join|
                                     (|TableAggregate| '|t#1| '|t#2|)
                                     (|ListAggregate| '#1#)
                                     (|mkCategory| '|domain|
                                      '(((|assoc|
                                          ((|Union|
                                            (|Record| (|:| |key| |t#1|)
                                             (|:| |entry| |t#2|))
                                            "failed")
                                           |t#1| $))
                                         T))
                                      NIL 'NIL NIL))
                                    . #2=(|AssociationListAggregate|)))))) . #2#)
        (SETELT #0# 0
                (LIST '|AssociationListAggregate| (|devaluate| |t#1|)
                      (|devaluate| |t#2|))))))) 
