Function: set:replace
set:replace is a byte-compiled function defined in set.el.
Signature
(set:replace OLD-ELT NEW-ELT SET)
Documentation
Replace OLD-ELT with NEW-ELT in SET. Add NEW-ELT if OLD-ELT is not in SET.
Return the set. Use (setq set (set:replace elt set)) to assure set is always properly modified.
Use set:equal-op for element comparisons.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/set.el
(defun set:replace (old-elt new-elt set)
"Replace OLD-ELT with NEW-ELT in SET. Add NEW-ELT if OLD-ELT is not in SET.
Return the set. Use (setq set (set:replace elt set)) to assure set is
always properly modified.
Use `set:equal-op' for element comparisons."
(set:add new-elt (set:remove old-elt set)))