
(/VERSIONCHECK 2) 

(DEFPARAMETER |KeyedDictionary;CAT| 'NIL) 

(DEFPARAMETER |KeyedDictionary;AL| 'NIL) 

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

(DEFUN |KeyedDictionary;| (|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
                             (|KeyedDictionary;CAT|)
                             ('T
                              (LETT |KeyedDictionary;CAT|
                                    (|Join| (|Dictionary| '#1#)
                                     (|mkCategory| '|domain|
                                      '(((|key?| ((|Boolean|) |t#1| $))
                                         T)
                                        ((|keys| ((|List| |t#1|) $)) T)
                                        ((|remove!|
                                          ((|Union| |t#2| "failed")
                                           |t#1| $))
                                         T)
                                        ((|search|
                                          ((|Union| |t#2| "failed")
                                           |t#1| $))
                                         T))
                                      NIL '((|List| |t#1|) (|Boolean|))
                                      NIL))
                                    . #2=(|KeyedDictionary|)))))) . #2#)
        (SETELT #0# 0
                (LIST '|KeyedDictionary| (|devaluate| |t#1|)
                      (|devaluate| |t#2|))))))) 
