(subst new_element old_element list)
The subst function copies a list substituting every occurrence of old_element by new_element.
If old_element cannot be found in the given list, subst returns the original list unchanged.
Examples
: (subst '1 '4 '(4 2 3 4 2 3 4 2 3))
(1 2 3 1 2 3 1 2 3)
: (subst '1 '4 '(1 2 3 1 2 3 1 2 3))
(1 2 3 1 2 3 1 2 3)
Related Functions