Doubt

View: New views
3 Messages — Rating Filter:   Alert me  

Doubt

by perez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

In SWI-Prolog, sometimes when I query the program, the answer is More?

 

E.g.

?- wumpus(4,4).

More? % then I press Enter

Yes % … and the system answers

 

What means More??


Re: Doubt

by Gerardo I. Simari :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Marco,

The system is asking you if you want any more solutions, if there are any.
If you press enter, you are stating that you don't want more, otherwise you should
press ";" and you will get another solution or "No" if there are none left.

Hope that helped,
Gerardo.

On Mon, Apr 21, 2008 at 3:14 PM, Marco Perez <msmr@...> wrote:

Hi,

 

In SWI-Prolog, sometimes when I query the program, the answer is More?

 

E.g.

?- wumpus(4,4).

More? % then I press Enter

Yes % … and the system answers

 

What means More??



Re: Doubt

by Benjamin L.Russell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Marco,

This topic is also described on the following site:

SWI-Prolog 5.6.52 Reference Manual: Section 2.1 - 2.1.2 Executing a query:
http://gollem.science.uva.nl/SWI-Prolog/Manual/quickstart.html#sec:2.1.2

Benjamin L. Russell

--- On Tue, 4/22/08, Gerardo I. Simari <gisimari@...> wrote:
From: Gerardo I. Simari <gisimari@...>
Subject: Re: [SWIPL] Doubt
To: prolog@...
Date: Tuesday, April 22, 2008, 5:10 AM

Hi Marco,

The system is asking you if you want any more solutions, if there are any.
If you press enter, you are stating that you don't want more, otherwise you should
press ";" and you will get another solution or "No" if there are none left.

Hope that helped,
Gerardo.

On Mon, Apr 21, 2008 at 3:14 PM, Marco Perez <msmr@...> wrote:

Hi,

 

In SWI-Prolog, sometimes when I query the program, the answer is More?

 

E.g.

?- wumpus(4,4).

More? % then I press Enter

Yes % … and the system answers

 

What means More??


------------ For further info, please visit http://www.swi-prolog.org/ To unsubscribe, send a plaintext mail with "unsubscribe prolog " in its body to majordomo@...