% TODO: Pillow, PrologBeans, Spaceout, XML. % Manual order.
The Prolog library comprises a number of packages that are thought to be useful in a number of applications. Note that the predicates in the Prolog library are not built-in predicates. One has to explicitly load each package to get access to its predicates. The following packages are provided:
arrays
(see Arrays)
assoc
(see Assoc)
atts
(see Attributes)
heaps
(see Heaps)
lists
(see Lists)
terms
(see Term Utilities)
ordsets
(see Ordsets)
queues
(see Queues)
random
(see Random)
system
(see System Utilities)
trees
(see Trees)
library(arrays)
, but library(trees)
is slightly more
efficient if the array does not need to be extendible.
ugraphs
(see UGraphs)
wgraphs
(see WGraphs)
sockets
(see Sockets)
linda/client
linda/server
(see Linda Library)
bdb
(see BDB)
clpb
(see CLPB)
clpq
clpr
(see CLPQR)
clpfd
(see CLPFD)
chr
(see CHR)
fdbg
(see FDBG)
objects
(see Obj Intro)
pillow
(see PiLLoW)
xml
(see XML)
tcltk
(see Tcl/Tk)
gauge
(see Gauge)
tcltk
.
charsio
(see Chars I/O)
jasper
(see Jasper)
prologbeans
(see PrologBeans)
comclient
(see COM Client)
vbsp
(see Visual Basic)
flinkage
(see Runtime Utilities)
spaceout
(see Spaceout)
timeout
(see Timeout)
wcx_example
To load a library package Package, you will normally enter a query
| ?- use_module(library(Package)).
A library package normally consists of one or more hidden modules.
An alternative way of loading from the library is using the
built-in predicate require/1
(see Read In). The index
file INDEX.pl
needed by require/1
can be created by the
make_index
program. This program is loaded as:
| ?- use_module(library(mkindex)).
make_index:make_library_index(
+LibraryDirectory)
Creates a file INDEX.pl
in LibraryDirectory. All
*.pl
files in the directory and all its subdirectories are
scanned for module/2
declarations. From these
declarations, the exported predicates are entered into
the index.