Skip to content

Instantly share code, notes, and snippets.

@abolibibelot
Last active December 16, 2015 08:18
Show Gist options
  • Save abolibibelot/5404396 to your computer and use it in GitHub Desktop.
Save abolibibelot/5404396 to your computer and use it in GitHub Desktop.
Merging dictionarie
Boxes = compute_box_set(Lat,Lon,Res,Slice),
Results = [ GetFun(Box) || Box <- Boxes],
ResAcc = lists:foldl(fun(ElemDict,Acc)->
dict:merge(fun(_,V1,V2)-> lists:append(V1,V2) end,ElemDict,Acc)
end,
dict:new(),Results),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment