The concept of a bag doesn't make sense if updates are going to be required. Given that ets:update_element/3
explicitly doesn't support bags, it seems evident that delete then write is your only option.
How to update data in an ets bag?
Pergunta
ets:insert can be used to update data in an ets set, but how about a bag? Do we have to update by match_delete or select_delete first and then insert?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow