且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如果没有,则删除序言

更新时间:2023-02-08 22:09:17



The general translation scheme for

pred(X):-
  ( A -> B
  ; C -> D
  ; G
  ).
pred(Y):- Q.

pred(X):- pred1(X).
pred(Y):- Q.

pred1(X):- call(A), !, B.
pred1(X):- call(C), !, D.
pred1(X):- G.

非常感谢 j4n bur53 指出需要通话-如果在 A内有切痕 C

Big thanks to j4n bur53 for pointing out the need for call -- in case there's a cut inside the A or the C!

另请参见 -> 文档

See also -> documentation.