
(/VERSIONCHECK 2) 

(DEFPARAMETER |DequeueAggregate;CAT| 'NIL) 

(DEFPARAMETER |DequeueAggregate;AL| 'NIL) 

(DEFUN |DequeueAggregate| (#1=#:G1797)
  (LET (#2=#:G1798)
    (COND
     ((SETQ #2# (|assoc| #3=(|devaluate| #1#) |DequeueAggregate;AL|))
      (CDR #2#))
     (T
      (SETQ |DequeueAggregate;AL|
              (|cons5| (CONS #3# (SETQ #2# (|DequeueAggregate;| #1#)))
                       |DequeueAggregate;AL|))
      #2#)))) 

(DEFUN |DequeueAggregate;| (|t#1|)
  (PROG (#1=#:G1796)
    (RETURN
     (PROG1
         (LETT #1#
               (|sublisV| (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                          (COND (|DequeueAggregate;CAT|)
                                ('T
                                 (LETT |DequeueAggregate;CAT|
                                       (|Join| (|StackAggregate| '|t#1|)
                                               (|QueueAggregate| '|t#1|)
                                               (|mkCategory|
                                                '(((|dequeue| ($)) T)
                                                  ((|dequeue|
                                                    ($ (|List| |t#1|)))
                                                   T)
                                                  ((|height|
                                                    ((|NonNegativeInteger|) $))
                                                   T)
                                                  ((|top!| (|t#1| $)) T)
                                                  ((|bottom!| (|t#1| $)) T)
                                                  ((|insertTop!|
                                                    (|t#1| |t#1| $))
                                                   T)
                                                  ((|insertBottom!|
                                                    (|t#1| |t#1| $))
                                                   T)
                                                  ((|extractTop!| (|t#1| $)) T)
                                                  ((|extractBottom!| (|t#1| $))
                                                   T)
                                                  ((|reverse!| ($ $)) T))
                                                NIL
                                                '((|NonNegativeInteger|)
                                                  (|List| |t#1|))
                                                NIL))
                                       . #2=(|DequeueAggregate|)))))
               . #2#)
       (SETELT #1# 0 (LIST '|DequeueAggregate| (|devaluate| |t#1|))))))) 
