increment in map
Wes James
comptekki@REDACTED
Mon Jul 26 20:38:57 CEST 2010
I have this code:
map(fun(Row) ->
{table, [{style, "width:700px; margin:5px;
background-color:dddddd;"}],
[
thtd(Hdrs, [{td, [], massage(W,Ls)} || W <- vp(Vp,Row)])
]}
end, Rows)
and as I loop through the Row I would also like to send an increment
in the massage(W,LS,Inc) call, but I don't see how I can do that
within a list comprehension. Any ideas on how I would do this?
thx,
-wes
More information about the erlang-questions
mailing list