Re: How to return clause in findall/3

From: Pere Montolio (tmp123_at_menta.net)
Date: 08/13/04


Date: 13 Aug 2004 01:30:09 -0700

In addition to the previous (and very nice) solution, you can also
test something like:

clause2term(sc(A,B,C)) :- sc(A,B,C).

followed by:

findall(A,clause2term(A),L).

(written without test: no visual prolog available).