Places
Home
Graphs
Prefixes
Admin
Users
Settings
Plugins
Statistics
Repository
Load local file
Load from HTTP
Load from library
Remove triples
Clear repository
Query
YASGUI SPARQL Editor
Simple Form
SWISH Prolog shell
Help
Documentation
Tutorial
Roadmap
HTTP Services
Login
4.29 Built-in list operations
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Built-in Predicates
Built-in list operations
is_list/1
memberchk/2
length/2
sort/2
sort/4
msort/2
keysort/2
predsort/3
Packages
Availability:
:- use_module(
library(sort)
).
(can be autoloaded)
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 the built-in predicate
compare/3
is used, the result is the same as
sort/2
. See also
keysort/2
.
ClioPatria
(version
V3.1.1-21-gb8003bb
)