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, setKnowledgeBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAlwaysCutOnBacktrackprotected Predicate getPredicate(Term list, Term expectedLength)
getPredicate in class AbstractPredicateFactoryCopyright © 2024. All rights reserved.