例如 - 我有一些条款:
moves(1, [1]).
moves(1, [2]).
moves(1, [3]).
我怎样才能获得下一个学期?
moves(1, [1,2,3]).
% I have
moves(1, [1]).
moves(1, [2]).
moves(1, [3]).
% I need to write some predicate which
transform_moves :-
% ...
% ...
assert(moves(Pos, Arr)),
% moves(1, [1,2,3]).