
(/VERSIONCHECK 2) 

(DEFPARAMETER |MultiDictionary;CAT| 'NIL) 

(DEFPARAMETER |MultiDictionary;AL| 'NIL) 

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

(DEFUN |MultiDictionary;| (|t#1|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|MultiDictionary;CAT|)
                         ('T
                          (LETT |MultiDictionary;CAT|
                                (|Join| (|DictionaryOperations| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|insert!|
                                             ($ |t#1| $
                                              (|NonNegativeInteger|)))
                                            T)
                                           ((|removeDuplicates!| ($ $))
                                            T)
                                           ((|duplicates|
                                             ((|List|
                                               (|Record|
                                                (|:| |entry| |t#1|)
                                                (|:| |count|
                                                 (|NonNegativeInteger|))))
                                              $))
                                            T))
                                         NIL
                                         '((|List|
                                            (|Record|
                                             (|:| |entry| |t#1|)
                                             (|:| |count|
                                              (|NonNegativeInteger|))))
                                           (|NonNegativeInteger|))
                                         NIL))
                                . #1=(|MultiDictionary|))))) . #1#)
        (SETELT #0# 0 (LIST '|MultiDictionary| (|devaluate| |t#1|))))))) 
