Write a function with three parameters, two atoms and a list, (say p1, p2
and L) that returns the list, L, with all occurrences of the first given atom,
p1, replaced by the second one, p2. If P2 be nil, the given atom should be
deleted and the returned list cannot contain anything in place
Hi
Write a function with three parameters, two atoms and a list, (say p1, p2
and L) that returns the list, L, with all occurrences of the first given
atom, p1, replaced by the second one, p2. If P2 be nil, the given atom
should be deleted and the returned list cannot contain anything in place