문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top