Erlang:在ets表中找到交叉点

我有下一个项目的ets:
[at, {other_place}, me],
[other_place, {place}, {other_place}]],
[at, {place}, me], 
[on, {surface}, {object}],
[small, {object}]
我有清单
[[at, door, me],[on, floor, chair],[small, bannanas]]
我需要将ets表中的每个项目与列表中的项目进行比较,如果第一个项目是同一个原子,则替换圆括号中的项目。所以,如果我有
[at, door, me]
,它与
[at, {other_place}, me]
匹配,我必须在所有ets表中改变原子门的
{other_place}
。     
已邀请:
我认为这可以通过ets实现:foldl通过传递列表进行比较,作为Acc参数。 如果需要,列表也可以用列表折叠:foldl如果你需要通过它的子列表。     

要回复问题请先登录注册