(no subject)

A/c Luis Michelena lmichele@fmed.edu.uy
Thu, 6 Jun 2002 12:40:20 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_00D4_01C20D57.52183830
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The second "a" you put, shouldn=B4t be Integer?, shouldn=B4t you have an =
Integral ouput Type? It could be done using only things like map, =
iterate, take and other prelude staff: is that ok?
Cheers,
            Luis Michelena
            (a "Just a student")
  ----- Original Message -----=20
  From: xoo=20
  To: haskell-cafe@haskell.org=20
  Sent: Wednesday, June 05, 2002 8:59 AM
  Subject: (no subject)


  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


  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.368 / Virus Database: 204 - Release Date: 29/5/02

------=_NextPart_000_00D4_01C20D57.52183830
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.4807.2300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>The second "a" you put, shouldn=B4t be =
Integer?,=20
shouldn=B4t&nbsp;you have an Integral ouput Type? It could be done using =
only=20
things like map, iterate,&nbsp;take and other prelude staff: is that=20
ok?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Cheers,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; Luis Michelena</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; (a "Just a student")</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A title=3Dixoo21@hotmail.com =
href=3D"mailto:ixoo21@hotmail.com">xoo</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dhaskell-cafe@haskell.org=20
  href=3D"mailto:haskell-cafe@haskell.org">haskell-cafe@haskell.org</A> =
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, June 05, 2002 =
8:59=20
  AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> (no subject)</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>hi.. i was just wondering if some =
body could give=20
  a 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>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2><BR>---<BR>Outgoing mail is certified =
Virus=20
  Free.<BR>Checked by AVG anti-virus system (<A=20
  =
href=3D"http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: =
6.0.368=20
  / Virus Database: 204 - Release Date:=20
29/5/02</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_00D4_01C20D57.52183830--