且构网

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

如何在 prolog 中打印所有数据库事实

更新时间:2023-02-10 15:16:57

您也可以考虑使用 forall/2 谓词:

You might also consider using forall/2 predicate:

print:-
 forall(fact(P), writeln(P)).