Function: nrepl-dict-put

nrepl-dict-put is a byte-compiled function defined in nrepl-dict.el.

Signature

(nrepl-dict-put DICT KEY VALUE)

Documentation

Associate in DICT, KEY to VALUE.

Return new dict. Dict is modified by side effects.

Source Code

;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/nrepl-dict.el
(defun nrepl-dict-put (dict key value)
  "Associate in DICT, KEY to VALUE.
Return new dict.  Dict is modified by side effects."
  (if (null dict)
      `(dict ,key ,value)
    (if (not (nrepl-dict-p dict))
        (error "Not an nREPL dict object: %s" dict)
      (setcdr dict (nrepl-plist-put (cdr dict) key value))
      dict)))