Re: how to make this fail driven loop succesfull ?
Kilian Evang <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
On 2014-03-08 22:00, Roelof Wobben wrote: > I have tried to add siblings(_) but with no success You need siblings(_,_). In Prolog, a predicate is identified by functor *and* number of arguments. siblings with 1 argument (referred to as siblings/1) is completely different from siblings with 2 arguments (referred to as siblings/2).