Haskell
Law
lawer@lineone.net
Thu, 20 Dec 2001 15:13:49 -0000
This is a multi-part message in MIME format.
------=_NextPart_000_0011_01C18968.EDE81AA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
hi, how do I define this function:
tupleWithf :: [Int] -> [(Int, Int)]
such that=20
tupleWithf [x1,x2,.....,xn]
=3D [ (f x1, x1), (f x2 x2),...., (f xn, xn) ]
------=_NextPart_000_0011_01C18968.EDE81AA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>hi, how do I define this =
function:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>tupleWithf :: [Int] -> [(Int,=20
Int)]</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>such that </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>tupleWithf =
[x1,x2,.....,xn]</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>=3D [ (f x1, x1), (f x2 x2),...., (f =
xn, xn)=20
]</FONT></DIV></BODY></HTML>
------=_NextPart_000_0011_01C18968.EDE81AA0--