Re: How to return clause in findall/3
From: Pere Montolio (tmp123_at_menta.net)
Date: 08/13/04
- Next message: Pento: "Re: Help I'm stuck!"
- Previous message: Pere Montolio: "Re: How to return clause in findall/3"
- In reply to: reader: "Re: How to return clause in findall/3"
- Next in thread: reader: "Re: How to return clause in findall/3"
- Reply: reader: "Re: How to return clause in findall/3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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).
- Next message: Pento: "Re: Help I'm stuck!"
- Previous message: Pere Montolio: "Re: How to return clause in findall/3"
- In reply to: reader: "Re: How to return clause in findall/3"
- Next in thread: reader: "Re: How to return clause in findall/3"
- Reply: reader: "Re: How to return clause in findall/3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]