subst-if

subst-if is an alias for `cl-subst-if' in `cl.el'.

(subst-if NEW PREDICATE TREE [KEYWORD VALUE]...)

Substitute NEW for elements matching PREDICATE in TREE (non-destructively).
Return a copy of TREE with all matching elements replaced by NEW.

Keywords supported: :key