Nrs_Between(X,Y,Nr) :-
Z>X,
Z<Y,
Nr is Z.
------------------------- * --------------------- --------
?- Nrs_Between(1,10,X).
等待输出:
Z = 2;
Z = 3;
etc
获取输出:
>/2: Arguments are not sufficiently instantiated.
------------------------- * --------------------- --------
任何?