我想写一个md5谓词验证以下: md5("my string", "my md5").
这样的谓词的真实例是 md5("long live and prosper", "bf1835ce984d2a97d31409394fe00e9a").
我看着文档,和我发现这个:http://www.swi-prolog.org/pldoc/doc_for?object=crypt/2 ?- phra
我在SWI Prolog上创建了一个简单的数据库。我的任务是根据生产计划来计算每个部门的工作时间。我差不多完成了,但我不知道如何总结我的结果。至于现在我得到这样的事情 部门数量 B 20 Ç50 下30 我怎么能转换到这个? B 20 C 80 我的代码https://gist.github.com/senioroman4uk/d19fe00848889a84434b
我有一些谓词,我在Prolog中使用断言定义。 我使用current_predicate/1来知道assert是否已经运行(只有一个值需要被声明)。 然而,swipl不断抱怨: Warning: The predicates below are not defined. If these are defined
Warning: at runtime using assert/1, use :-