public final class SubList extends AbstractSingleResultPredicate implements PreprocessablePredicateFactory
include(X,Y,Z)
- filters a list by a goal.
include(X,Y,Z)
succeeds if the list Z
consists of the elements of the list Y
for which the goal X
can be successfully applied.
Constructor and Description |
---|
SubList() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(Term partiallyAppliedFunction,
Term args,
Term filteredOutput) |
PredicateFactory |
preprocess(Term term) |
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPredicate, isAlwaysCutOnBacktrack, isRetryable
protected boolean evaluate(Term partiallyAppliedFunction, Term args, Term filteredOutput)
evaluate
in class AbstractSingleResultPredicate
public PredicateFactory preprocess(Term term)
preprocess
in interface PreprocessablePredicateFactory
Copyright © 2024. All rights reserved.