make predsort a system predicate.

This commit is contained in:
Vítor Santos Costa II
2010-04-20 23:49:14 +01:00
parent b0f20ea8c5
commit 2566ebcee5
3 changed files with 53 additions and 56 deletions

View File

@@ -3743,6 +3743,16 @@ would return:
S = [1-b,1-a,1-b,2-c,3-a]
@end example
@item predsort(+@var{Pred}, +@var{List}, -@var{Sorted})
@findex predsort/3
@snindex predsort/3
@cnindex predsort/3
Sorts similar to sort/2, but determines the order of two terms by
calling @var{Pred}(-@var{Delta}, +@var{E1}, +@var{E2}) . This call must
unify @var{Delta} with one of @code{<}, @code{>} or @code{=}. If
built-in predicate compare/3 is used, the result is the same as
sort/2.
@item length(?@var{L},?@var{S})
@findex length/2
@syindex length/2