Hugs question

Swee Guan Swigs@iprimus.com.au
Tue, 20 Mar 2001 17:13:12 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C0B161.0B114880
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I was suppose to find a function mid3 that takes three integers and =
returns the middle one in terms of size but i cant seem to get it.
maybe you can help

mid3 :: Int -> Int -> Int -> Int
-- mid3 takes three integers and=20
-- returns the middle one in terms of size
mid3 x y z =3D min2 x (max2 y z)

please send to swigs01@hotmail.com

------=_NextPart_000_0007_01C0B161.0B114880
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>I was suppose to find a function mid3 =
that takes=20
three integers and returns the middle one in terms of size but i cant =
seem to=20
get it.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>maybe you can help</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>mid3 :: Int -&gt; Int -&gt; Int -&gt; =
Int<BR>--=20
mid3 takes three integers and <BR>-- returns the middle one in terms of=20
size<BR>mid3 x y z =3D min2 x (max2 y z)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>please send to=20
swigs01@hotmail.com</FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C0B161.0B114880--