public final class Nth extends AbstractPredicateFactory
nth0(X,Y,Z) / nth1(X,Y,Z) - examines an element of a list.
Indexing starts at 0 when using nth0. Indexing starts at 1 when using nth1.
| Modifier and Type | Method and Description |
|---|---|
protected Predicate |
getPredicate(Term index,
Term list,
Term element) |
static Nth |
nth0() |
static Nth |
nth1() |
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, waitisAlwaysCutOnBacktrackpublic static Nth nth0()
public static Nth nth1()
protected Predicate getPredicate(Term index, Term list, Term element)
getPredicate in class AbstractPredicateFactoryCopyright © 2024. All rights reserved.