I have the following list:
(1 (2))
And I want to subsitute (2) with (2 (3)) in order to obtain:
(1 (2 (3)))
The use of subst as followed does not return the wished result:
(subst '(2 (3)) '(2) '(1 (2)))
Is there a simple way to perform the substitution?