Class NumberVars

java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.construct.NumberVars
All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory

public final class NumberVars extends AbstractSingleResultPredicate
numbervars(Term,Start,End) - unifies free variables of a term.

Unifies the free variables in Term with a structure of the form $VAR(N) where N is the number of the variable. Numbering of the variables starts with the numeric value represented by Start. End is unified with the number that would of been given to the next variable.