get list of public predicates defined in a module

130 Views Asked by At

I know that in Prolog every file defining a module should start with the instruction

:- module(module_name, [pred1/arity, ...]).

How can I retrieve the list of public predicates exported by a module at runtime?

SOLVED.

?- all(X, [module]:current_predicate(X),CX).

0

There are 0 best solutions below