subsequencing!

Ketil Malde ketil@ii.uib.no
07 Nov 2001 10:08:21 +0100


"Stephanie Randles" <srandles@bigpond.net.au> writes:

>    I'm studying for an exam in Haskell program and for practice we have been given
> exercises to complete on our own. The answers have not been put up on the website
> either.

Lest I be accused of solving people's homework (alas, I have none of
my own!),...

> So i was hoping for some help with this little program here. The idea is to be able to
> substitute the first occurrence of a given subsequence in a list with another
> subsequence.

...I shall merely point out that 

        (==)

is defined for lists, and suggest the use of

        isPrefixOf

-kzm
-- 
If I haven't seen further, it is by standing in the footprints of giants