Re: Getting status of a free variable.
- From: "Mauro Di Nuzzo" <picorna@xxxxxxxxx>
- Date: Tue, 12 Dec 2006 13:57:55 +0100
I dont know if I understood exactly, but it seems to me that you have just
to invert clauses, that is:
sillabo(Word,[Last,Current | T]) :-
nonvar(Last), !, ...
sillabo(Word,[H|T]) :- ....
Cheers
/\/\
"andrea" <kerny404@xxxxxxxxx> ha scritto nel messaggio
news:1165924229.460939.58060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello everyone,
Maybe it's very easy but I don't find anywhere a solution.
I need to know if a free variable is unified with any kind of value,
for example:
sillabo(Word,[H|T]) :- ....
sillabo(Word,[Last,Current | T]) :- ...
I want it to go to the second goal only if the actual list has already
a Last element that's unified with a value.
I'm sorry for my english and my prolog dictionary...
I'll try to be clearer if you don't understand my problem.
.
- Follow-Ups:
- Re: Getting status of a free variable.
- From: Mauro Di Nuzzo
- Re: Getting status of a free variable.
- References:
- Getting status of a free variable.
- From: andrea
- Getting status of a free variable.
- Prev by Date: Out of stack problem
- Next by Date: Re: Out of stack problem
- Previous by thread: Getting status of a free variable.
- Next by thread: Re: Getting status of a free variable.
- Index(es):
Relevant Pages
|
|