dear list,<br><br>i'm trying to match delete elements from an ETS table which have one of the tuple elements greater than 2.<br><br>start() -><br> ets:new(test, [named_table, set, protected]),<br> ets:insert(test, {a, 1, true, true}),<br>
ets:insert(test, {b, 2, true, true}),<br> ets:insert(test, {c, 3, true, true}),<br> ets:insert(test, {d, 2, true, true}),<br> ets:insert(test, {e, 1, true, true}),<br> ets:match_delete(test, [{['_', '$1', '_', '_'], [{'>', '$1', 2}], []}]),<br>
Result = ets:tab2list(test),<br> ets:delete(test),<br> Result.<br><br>this however does return the whole table.<br><br>any hints on what i'm doing wrong?<br><br>r.<br>