[erlang-questions] ets:match_delete

Roberto Ostinelli roberto@REDACTED
Tue Jun 7 19:15:34 CEST 2011

2011/6/7 Anthony Ramine <nox@REDACTED>

> [{{'_','$1','_','_'},[{'>','$1',2}],[]}] should work. You put a list
> instead of a tuple for the match argument.
> By the way I didn't read the doc to figure it out, I just did
> ets:fun2ms(fun ({_,X,_,_}) when X > 2 -> X end),
> which is pretty good for figuring out how to write matchspecs.

hi anthony,

no this does not work.

furthermore, i took the list format from the 2nd example provided in the

thank you anyway :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110607/840972e2/attachment.htm>

More information about the erlang-questions mailing list