4.5 List the program, predicates or clauses
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Built-in Predicates
List the program, predicates or clauses
listing/1
listing/0
portray_clause/1
portray_clause/2
Packages
Availability:
:- use_module(
library(listing)
).
(can be autoloaded)
listing
List all predicates from the calling module using
listing/1
. For example,
?- listing.
lists clauses in the default
user
module and
?- lists:listing.
lists the clauses in the module
lists
.