Dear Erlangers,<div><br></div><div><br></div><div>I hope to get a list from two lists like this:</div><div>[{a1,b1}, {a2,b2}, {a3,b3}]      <-     [a1, a2 a3],  [b1, b2, b3].</div><div><br></div><div>But if I use list comprehension, I got:</div>
<div><div>10>  [{D1,D2} ||  D1 <- [a1,a2,a3], D2 <- [b1,b2,b3]].</div><div>[{a1,b1},</div><div> {a1,b2},</div><div> {a1,b3},</div><div> {a2,b1},</div><div> {a2,b2},</div><div> {a2,b3},</div><div> {a3,b1},</div><div>
 {a3,b2},</div><div> {a3,b3}]</div></div><div><br></div><div><br></div><div>So, my questions is how to comprehend list in synchronous way in order to get what I want, rather than to compose the elements from two lists in all possible situations.</div>
<div><br></div><div><br></div><div>Thank you,</div><div>Barco</div>