Re: listing(+Pred, -Atom)




<Simon.Strobl@xxxxxxxxx> ha scritto nel messaggio
news:1184142100.393105.189000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,

is there a predicate (e.g. in swi) of this type: listing(+Pred, -
Atom), where Atom contains the listing for Pred?

If not, how could such a predicate be written? What other predicates
are there, besides "listing", for accessing the definition of a
predicate?



I think clause/2 gives you all the info needed.
This used to be the main metadata inspection builtin.
Bye Carlo


Simon



.



Relevant Pages