(no subject)

xoo ixoo21@hotmail.com
Wed, 5 Jun 2002 19:59:13 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C20CCB.7712A440
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi.. i was just wondering if some body could give a simple equation for =
the following situation.other than recursion plz..

occurrences :: Eq a =3D> a -> [a] -> [a]
--occurrences xs ys returns the number of times that xs  occurs in ys


thanks

------=_NextPart_000_000E_01C20CCB.7712A440
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hi.. i was just wondering if some body =
could give a=20
simple equation for the following situation.other than recursion=20
plz..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>occurrences :: Eq a =3D&gt; a -&gt; [a] =
-&gt;=20
[a]</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>--occurrences xs ys returns the number =
of times=20
that xs&nbsp; occurs in ys</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV></BODY></HTML>

------=_NextPart_000_000E_01C20CCB.7712A440--