Re: Another little problem
- From: phantastic@xxxxxxxxxx
- Date: 26 Feb 2007 23:22:41 -0800
On 26 Feb, 12:08, Nick Wedd <n...@xxxxxxxxxxxxx> wrote:
I think I understand what you mean.
This code is untested and may have errors:
hh( InF, InG, InF, InG ) :-
h( empty, InF, InG ).
hh( InF, InG, OutF, OutG ) :-
h( Z, InF, InG ),
hh( InG, Z, OutF, OutG ).
You call hh with the first two arguments instantiated to your initial F
and G. It instantiates its last two arguments to the F and G that
caused Z to become empty - I assume these are the values you are
interested in finding.
Nick
Thanks Nick, your predicate is great! :)
.
- References:
- Another little problem
- From: phantastic
- Re: Another little problem
- From: Nick Wedd
- Another little problem
- Prev by Date: Re: Prologs combined with other tools
- Next by Date: Re: Another little problem
- Previous by thread: Re: Another little problem
- Next by thread: Re: Another little problem
- Index(es):