Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法获取在 SICStus Prolog 解释器中加载的模块中定义的所有关系的列表?
您可以使用 current_predicate/1 内置谓词:
findall(Predicate, current_predicate(Module:Predicate), L)