Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!nntp.sei.cmu.edu!cis.ohio-state.edu!math.ohio-state.edu!howland.reston.ans.net!news.sprintlink.net!in1.uu.net!newsflash.concordia.ca!CC.UMontreal.CA!IRO.UMontreal.CA!cabonga.iro.umontreal.ca!duperval
From: duperval@IRO.UMontreal.CA (Laurent Duperval)
Subject: How can I list rules?
Message-ID: <DECoIB.Dnx@IRO.UMontreal.CA>
Sender: news@IRO.UMontreal.CA
Organization: Universite de Montreal
X-Newsreader: TIN [version 1.2 PL2]
Date: Sun, 3 Sep 1995 22:15:45 GMT
Lines: 23

Hello,

How can I create a list of predicates that I have designed.  For example, if I
have the following ruules:

foo(A) :- .....
foo(A,B) :- .....
foo.

how can I generate a list containing [foo/0,foo/1,foo/2]?  I only want the
ruls that I have asserted or consulted?  Is this possible?  

Thank you for any and all reponses.

--
Laurent Duperval, B. Sc.  | The opinions expressed herein are free to
                          | represent those of this or any establishment.
duperval@iro.umontreal.ca | However, I don't accept any liability for their
duperval@jsp.umontreal.ca | actions.  Freedom must have its price.

On the day of the final exam the professor said, "Anyone who is satisfied
with a B may put their name on this list and leave now."  When those who
wanted to do so had signed and left he said, "The rest of you get As."
