public final class ExtremumList extends AbstractSingleResultPredicate
min_list / max_list
min_list(Min, List) - True if Min is the smallest number in List. Fails if List is empty.max_list(Max, List) - True if Max is the largest number in List. Fails if List is empty.| Modifier and Type | Method and Description |
|---|---|
protected boolean |
evaluate(Term input,
Term output) |
static ExtremumList |
maxList() |
static ExtremumList |
minList() |
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAlwaysCutOnBacktrackpublic static ExtremumList minList()
public static ExtremumList maxList()
protected boolean evaluate(Term input, Term output)
evaluate in class AbstractSingleResultPredicateCopyright © 2024. All rights reserved.