match_delete and fun2ms

Max Lapshin <>
Sat Mar 20 21:41:25 CET 2010

Is it possible to delete entries from ets, basing on fun2ms spec?

Spec = ets:fun2ms(fun(#video_frame{dts = TS} ) when TS < Limit ->
Count = ets:select_count(Frames, Spec),
ets:match_delete(Frames, Spec)

This code shows me increasing Count, but doesn't delete anything.

More information about the erlang-questions mailing list