Get all objects from ets table

for anyone (like me) wondering how this is done with :dets

:dets.foldl(fn elem, acc -> [elem | acc] end, [], t)