
(/VERSIONCHECK 2) 

(DEFPARAMETER |ExtensibleLinearAggregate;CAT| 'NIL) 

(DEFPARAMETER |ExtensibleLinearAggregate;AL| 'NIL) 

(DEFUN |ExtensibleLinearAggregate| (#0=#:G1816)
  (LET (#1=#:G1817)
    (COND
      ((SETQ #1#
             (|assoc| #2=(|devaluate| #0#)
                      |ExtensibleLinearAggregate;AL|))
       (CDR #1#))
      (T (SETQ |ExtensibleLinearAggregate;AL|
               (|cons5| (CONS #2#
                              (SETQ #1#
                                    (|ExtensibleLinearAggregate;| #0#)))
                        |ExtensibleLinearAggregate;AL|))
         #1#)))) 

(DEFUN |ExtensibleLinearAggregate;| (|t#1|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|ExtensibleLinearAggregate;CAT|)
                         ('T
                          (LETT |ExtensibleLinearAggregate;CAT|
                                (|Join| (|LinearAggregate| '|t#1|)
                                        (|shallowlyMutable|)
                                        (|mkCategory| '|domain|
                                         '(((|concat!| ($ $ |t#1|)) T)
                                           ((|concat!| ($ $ $)) T)
                                           ((|delete!|
                                             ($ $ (|Integer|)))
                                            T)
                                           ((|delete!|
                                             ($ $
                                              (|UniversalSegment|
                                               (|Integer|))))
                                            T)
                                           ((|remove!|
                                             ($
                                              (|Mapping| (|Boolean|)
                                               |t#1|)
                                              $))
                                            T)
                                           ((|insert!|
                                             ($ |t#1| $ (|Integer|)))
                                            T)
                                           ((|insert!|
                                             ($ $ $ (|Integer|)))
                                            T)
                                           ((|merge!|
                                             ($
                                              (|Mapping| (|Boolean|)
                                               |t#1| |t#1|)
                                              $ $))
                                            T)
                                           ((|select!|
                                             ($
                                              (|Mapping| (|Boolean|)
                                               |t#1|)
                                              $))
                                            T)
                                           ((|remove!| ($ |t#1| $))
                                            (|has| |t#1|
                                             (|SetCategory|)))
                                           ((|removeDuplicates!| ($ $))
                                            (|has| |t#1|
                                             (|SetCategory|)))
                                           ((|merge!| ($ $ $))
                                            (|has| |t#1|
                                             (|OrderedSet|))))
                                         NIL
                                         '((|Integer|)
                                           (|UniversalSegment|
                                            (|Integer|)))
                                         NIL))
                                . #1=(|ExtensibleLinearAggregate|))))) . #1#)
        (SETELT #0# 0
                (LIST '|ExtensibleLinearAggregate| (|devaluate| |t#1|))))))) 
