摘要:
代码:View Code 1 -module(lib_misc). 2 -export([pmap/2]). 3 -import(lists, [foreach/2]). 4 5 pmap(F, L) -> 6 S = self(), 7 %%Ref = erlang:make_ref(), 8 lists:foreach(fun(I)-> 9 spawn(fun() ->do_f(S, F, I) end)10 end, L),11 gether(length(L), []).12 ... 阅读全文
posted @ 2012-02-07 11:11
linbingzhong
阅读(282)
评论(0)
推荐(0)

浙公网安备 33010602011771号