[erlang-questions] ets:match_delete

Roberto Ostinelli <>
Tue Jun 7 19:15:34 CEST 2011


2011/6/7 Anthony Ramine <>

>
> [{{'_','$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
docs:
http://www.erlang.org/doc/apps/erts/match_spec.html#id71596

thank you anyway :)

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


More information about the erlang-questions mailing list