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}
。
没有找到相关结果
已邀请:
1 个回复
号拳藐孔妇