<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Probably you might need the "zip" function.<div>Check here:</div><div><a href="http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:zip">http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:zip</a><br><br>> Date: Tue, 9 Jun 2009 06:05:57 -0700<br>> From: ptrash@web.de<br>> To: haskell-cafe@haskell.org<br>> Subject: [Haskell-cafe] Combine to List to a new List<br>> <br>> <br>> Hi,<br>> <br>> I have the following two lists:<br>> <br>> a = [1,2,3]<br>> b = ["A","B","C"]<br>> <br>> I want a combination of the to lists:<br>> <br>> c = [(1,"A"), (2, "B"), (3, "C")]<br>> <br>> How can I do this?<br>> <br>> I have tried<br>> <br>> c = [(x,y) | x &lt;- a, y &lt;- b] <br>> <br>> But this  just returns me a list with every possible combination of the 2<br>> lists.<br>> <br>> Thanks...<br>> <br>> <br>> -- <br>> View this message in context: http://www.nabble.com/Combine-to-List-to-a-new-List-tp23942440p23942440.html<br>> Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.<br>> <br>> _______________________________________________<br>> Haskell-Cafe mailing list<br>> Haskell-Cafe@haskell.org<br>> http://www.haskell.org/mailman/listinfo/haskell-cafe<br></div><br /><hr />Windows Live™: Keep your life in sync. <a href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009' target='_new'>Check it out!</a></body>
</html>