
(/VERSIONCHECK 2) 

(DEFPARAMETER |DequeueAggregate;CAT| 'NIL) 

(DEFPARAMETER |DequeueAggregate;AL| 'NIL) 

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

(DEFUN |DequeueAggregate;| (|t#1|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|DequeueAggregate;CAT|)
                         ('T
                          (LETT |DequeueAggregate;CAT|
                                (|Join| (|StackAggregate| '|t#1|)
                                        (|QueueAggregate| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|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))
                                . #1=(|DequeueAggregate|))))) . #1#)
        (SETELT #0# 0 (LIST '|DequeueAggregate| (|devaluate| |t#1|))))))) 
