<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv1316009878">in python I can do:<br>>>> map(lambda x,y:x+y,[1,2,3],[4,5,6])<br>[5, 7, 9]<br>>>> <br><br>38> lists:map(fun(X,Y) -> X+Y end,[1,2],[3,4]).<br>** exception error: undefined function lists:map/3<br>39> <br><br>isnt there general map-function that map is derived from that I can use? <br>what about listcomprehensions?<br>44> [X+Y || X,Y <- lists:seq(1,10),lists:seq(1,10)].<br>* 1: variable 'X' is unbound<br>45> </div></td></tr></table><br>
<hr size=1>
Går det långsamt? Skaffa dig en snabbare bredbandsuppkoppling.<br>
<a href=http://www.kelkoo.se/c-100015813-bredband.html?partnerId=96914325>Sök och jämför priser hos Kelkoo.</a>