Newsgroups: comp.lang.lisp
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!usenet.eel.ufl.edu!news-feed-1.peachnet.edu!gatech!swrinde!cs.utexas.edu!news.sprintlink.net!pipex!uknet!liv!forster
From: forster@liverpool.ac.uk (Mr R. Forster)
Subject: HELP NEEDED !
Message-ID: <D587yM.Mrn@liverpool.ac.uk>
Sender: news@liverpool.ac.uk (News System)
Nntp-Posting-Host: chad2-21.liv.ac.uk
Organization: The University of Liverpool
X-Newsreader: TIN [version 1.2 PL2]
Date: Fri, 10 Mar 1995 13:25:34 GMT
Lines: 12

I am having trouble answering the question, detailed below,
can anybody help ?

Write a recursive function called r-replace which given 3 arguments,
the first two of which are atoms and the third of which is a list,
which replaces all occurences of the 1st argument with the 2nd in
the 3rd. e.g.

>(r-replace 1 2`(1 2 3 4 1 3 4))
(2 2 3 4 2 3 4)


