문제

Is there any way to get the list of all relations defined in a loaded module in SICStus Prolog interpreter?

도움이 되었습니까?

해결책

You can use the current_predicate/1 built_in predicate:

findall(Predicate, current_predicate(Module:Predicate), L)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top