Getting status of a free variable.
- From: "andrea" <kerny404@xxxxxxxxx>
- Date: 12 Dec 2006 03:50:29 -0800
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.
- Prev by Date: Re: Arithmetic puzzle
- Next by Date: Out of stack problem
- Previous by thread: Re: Prolog and Logical definitions of plus/subtract
- Next by thread: Re: Getting status of a free variable.
- Index(es):