[erlang-questions] Traverse dets and get all items

Bengt Kleberg bengt.kleberg@REDACTED
Fri Jan 14 12:17:01 CET 2011


Greetings,

To accumulate things you could use dets:foldl/3


bengt

On Fri, 2011-01-14 at 11:58 +0100, shk wrote:
> Hello,
> 
> I have dets table. Table view:
> 
> {Time, Date, Space, Text}
> 
> I need travers this table and put all data to list or another data
> structure. I find example:
> 
> Fun = fun(X) -> io:format("~p~n", [X]), continue end,
> dets:traverse(MyTable,Fun).
> 
> But it's only print dets items in console. How can i get all dets items and
> put it into list or something else?
> 
> Thank you.



More information about the erlang-questions mailing list