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.
我有一个设置了所有值的地图/3,我如何从地图中更改一个值,例如我想更改为map(2,3,"O"),map(2,3,"X")如何将“O”从该位置更改为“X”?
map(2,3,"O")
map(2,3,"X")
:- dynamic map/3. change_map(X,Y,Old,New) :- retract(map(X,Y,Old)), asserta(map(X,Y,New)).