Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ets:insert 可用于更新 ets set 中的数据,但是 bag 呢?我们是否必须先通过 match_delete 或 select_delete 进行更新,然后再插入?
如果需要更新,包的概念就没有意义。鉴于ets:update_element/3明确不支持包,显然删除然后写入是您唯一的选择。
ets:update_element/3