public final class KeySort extends AbstractSingleResultPredicate
keysort(X,Y)
- sorts a list of key/value pairs.
Sorts the list X
, containing key/value pairs, and attempts to unify the result with
Y
. Key/value pairs are compound terms with a functor of -
and two arguments. The first
argument is the key and the second argument is the value. It is the key of the key/value pairs that is
used to sort the elements contained in X
. (Note: duplicates are not removed.)
Constructor and Description |
---|
KeySort() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(Term original,
Term result) |
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
isAlwaysCutOnBacktrack
protected boolean evaluate(Term original, Term result)
evaluate
in class AbstractSingleResultPredicate
Copyright © 2024. All rights reserved.