YAP 7.1.0
predsort/3

predsort(:Compare, +List, -Sorted) is det More...

Detailed Description

predsort(:Compare, +List, -Sorted) is det

% % Sorts similar to sort/2 , but determines the order of two terms % by calling Compare(-Delta, +E1, +E2) This call must unify % Delta with one of <, > or = If built-in predicate compare/3 is % used, the result is the same as sort/2 See also keysort/2

predsort(+ Pred, + List, - Sorted)

Sorts similar to sort/2 , but determines the order of two terms by calling Pred(- Delta, + E1, + E2) This call must unify Delta with one of <, > or = If built-in predicate compare/3 is used, the result is the same as sort/2


The documentation for this class was generated from the following file: