public final class Length extends AbstractPredicateFactory
length(X,Y)
- determines the length of a list.
The length(X,Y)
goal succeeds if the number of elements in the list X
matches the integer
value Y
.
Constructor and Description |
---|
Length() |
Modifier and Type | Method and Description |
---|---|
protected Predicate |
getPredicate(Term list,
Term expectedLength) |
getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicate, getPredicate, getPredicate, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAlwaysCutOnBacktrack
protected Predicate getPredicate(Term list, Term expectedLength)
getPredicate
in class AbstractPredicateFactory
Copyright © 2024. All rights reserved.