Problem with SWI-Prolog
- From: "SRocha" <msmr@xxxxxxxxxx>
- Date: Mon, 30 May 2005 09:21:19 +0100
Hi,
I have a doubt in SWI-Prolog. L and C are line and column respectively.
I want that swi-prolog consider the numeric value of C-1. Is there any
function to do this.
the result of the query must be yes.
q(9,8).
p(L,C) :- q(L,C-1).
?-p(9,9)
No
Thanks in advance
SRocha
.
- Follow-Ups:
- Re: Problem with SWI-Prolog
- From: Geoffrey Summerhayes
- Re: Problem with SWI-Prolog
- From: Ligezin
- Re: Problem with SWI-Prolog
- Prev by Date: Re: Problem
- Next by Date: pedagogic project
- Previous by thread: problem with anonymous variables
- Next by thread: Re: Problem with SWI-Prolog
- Index(es):
Relevant Pages
|
|