AW: Need some help please
Markus.Schnell@infineon.com
Markus.Schnell@infineon.com
Wed, 27 Aug 2003 16:13:32 +0200
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C36CA5.65616070
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
If you post some of your tries, we could give you specific tips.
=20
--=20
Markus Schnell=20
=20
-----Urspr=FCngliche Nachricht-----
Von: Rajiv Patel [mailto:raj_patel@cwcom.net]=20
Gesendet: Mittwoch, 27. August 2003 16:09
An: haskell@haskell.org
Betreff: Need some help please
Hi,=20
=20
I need to define a function called safetail; it's like tail except that =
this
one maps the empty list to the empty list. It has to be defined using =
the
following:
=20
1. a conditional expression=20
2. guarded equation=20
3. pattern matching=20
=20
It's probably quite simple, but I am struggling on this, so help would =
be
appreciated.
=20
Thanks
Raj
=20
=20
------_=_NextPart_001_01C36CA5.65616070
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=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE>Nachricht</TITLE>
<META content=3D"MSHTML 5.50.4926.2500" name=3DGENERATOR>
<STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt =
72.0pt 90.0pt; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
page: Section1
}
OL {
MARGIN-BOTTOM: 0cm
}
UL {
MARGIN-BOTTOM: 0cm
}
</STYLE>
</HEAD>
<BODY lang=3DEN-GB vLink=3Dpurple link=3Dblue>
<DIV><SPAN class=3D506401214-27082003><FONT face=3DArial =
color=3D#0000ff size=3D2>If you=20
post some of your tries, we could give you specific =
tips.</FONT></SPAN></DIV>
<DIV><SPAN lang=3Dde><FONT face=3D"Courier New" color=3D#000000=20
size=3D2></FONT></SPAN> </DIV>
<DIV><SPAN lang=3Dde><FONT face=3D"Courier New" color=3D#000000=20
size=3D2>--</FONT></SPAN> <BR><SPAN lang=3Dde><FONT face=3D"Courier =
New" color=3D#000000=20
size=3D2>Markus Schnell</FONT></SPAN> <BR><FONT =
face=3DTahoma><FONT=20
size=3D2><SPAN class=3D506401214-27082003><FONT face=3DArial=20
color=3D#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D506401214-27082003> </SPAN>-----Urspr=FCngliche=20
Nachricht-----<BR><B>Von:</B> Rajiv Patel [mailto:raj_patel@cwcom.net]=20
<BR><B>Gesendet:</B> Mittwoch, 27. August 2003 16:09<BR><B>An:</B>=20
haskell@haskell.org<BR><B>Betreff:</B> Need some help=20
please<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi, </SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I need to define a =
function called=20
safetail; it's like tail except that this one maps the empty list to =
the empty=20
list. It has to be defined using the following:</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<OL type=3D1>
<LI class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">a conditional=20
expression</SPAN></FONT>=20
<LI class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">guarded =
equation</SPAN></FONT>=20
<LI class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">pattern =
matching</SPAN></FONT>=20
</LI></OL>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">It's probably quite =
simple, but I=20
am struggling on this, so help would be =
appreciated.</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial">Thanks</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Raj</SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"></SPAN></FONT> </P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"></SPAN></FONT> </P></DIV></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C36CA5.65616070--