A The SWI-Prolog library

This chapter documents the SWI-Prolog library. As SWI-Prolog provides auto-loading, there is little difference between library predicates and built-in predicates. Part of the library is therefore documented in the rest of the manual. Library predicates differ from built-in predicates in the following ways.

The documentation of the library is just started. Material from the standard packages should be moved here, some material from other parts of the manual should be moved too and various libraries are not documented at all.


Section Index


A.1 library( lists ): List Manipulation
A.1.1 Set Manipulation
A.2 library( ordsets ): Ordered Set Manipulation
A.3 library( assoc ): Association lists
A.4 library( ugraphs ): Unweighted Graphs
A.5 library( nbset ): Non-backtrackable set
A.6 library( gensym ): Generate unique identifiers
A.7 library( check ): Elementary completeness checks
A.8 library( debug ): Some reusable code to help debugging applications
A.9 library( readutil ): Reading lines, streams and files
A.10 library( netscape ): Activating your Web-browser
A.11 library( registry ): Manipulating the Windows registry
A.12 library( url ): Analysing and constructing URL
A.13 library( clp/bounds ): Integer Bounds Constraint Solver
A.13.1 Constraints
A.13.2 Constraint Implication and Reified Constraints
A.13.3 Example 1: Send+More=Money
A.13.4 Example 2: Using tuples_in for a train schedule
A.13.5 SICStus clp(FD) compatibility
A.14 library( clpqr ): Constraint Logic Programming over Rationals and Reals
A.14.1 Solver predicates
A.14.2 Syntax of the predicate arguments
A.14.3 Use of unification
A.14.4 Non-linear constraints
A.15 library( clp/clp_distinct ): Weak arc consistent `all_distinct' constraint
A.15.1 Example 1
A.15.2 Example 2
A.15.3 Example 3
A.16 library( simplex ): Solve linear programming problems
A.16.1 Example 1
A.16.2 Example 2
A.16.3 Example 3
A.17 library( prologxref ): Cross-reference data collection library
A.17.1 Extending the library
A.18 library( broadcast ): Broadcast and receive event notifications
A.19 library( record ): Access named fields in a term