Home Contents Index Previous Next

D.4 Library predicates

D.4.1 library(check)

check/0Program completeness and consistency
list_undefined/0List undefined predicates
list_autoload/0List predicates that require autoload
list_redefined/0List locally redefined predicates

D.4.2 library(lists)

append/3Concatenate lists
delete/3Delete all matching members from a list
flatten/2Transform nested list into flat list
intersection/3Set intersection
is_set/1Type check for a set
list_to_set/2Remove duplicates
member/2Element is member of a list
nextto/3Y follows X in List
nth0/3N-th element of a list (0-based)
nth1/3N-th element of a list (1-based)
numlist/3Create list of integers in interval
permutation/2Test/generate permutations of a list
reverse/2Inverse the order of the elements in a list
select/3Select element of a list
subset/2Check subset relation for unordered sets
subtract/3Delete elements that do not satisfy condition
sumlist/2Add all numbers in a list
union/3Union of two sets

D.4.3 library(ugraphs)

vertices_edges_to_ugraph/3Create unweighted graph
vertices/2Find vertices in graph
edges/2Find edges in graph
add_vertices/3Add vertices to graph
del_vertices/3Delete vertices from graph
add_edges/3Add edges to graph
del_edges/3Delete edges from graph
transpose/2Invert the direction of all edges
neighbors/3Find neighbors of vertice
neighbours/3Find neighbors of vertice
complement/2Inverse presense of edges
compose/3
top_sort/2Sort graph topologically
top_sort/3Sort graph topologically
transitive_closure/2Create transitive closure of graph
reachable/3Find all reachable vertices
ugraph_union/3Union of two graphs

D.4.4 library(www_browser)

www_open_url/1Open a web-page in a browser

D.4.5 library(readutil)

read_line_to_codes/2Read line from a stream
read_line_to_codes/3Read line from a stream
read_stream_to_codes/2Read contents of stream
read_stream_to_codes/3Read contents of stream
read_file_to_codes/3Read contents of file
read_file_to_terms/3Read contents of file to Prolog terms

D.4.6 library(registry)

This library is only available on Windows systems.
registry_get_key/2Get principal value of key
registry_get_key/3Get associated value of key
registry_set_key/2Set principal value of key
registry_set_key/3Set associated value of key
registry_delete_key/1Remove a key
shell_register_file_type/4Register a file-type
shell_register_dde/6Register DDE action
shell_register_prolog/1Register Prolog

D.4.7 library(url)

parse_url/2Analyse or construct a URL
parse_url/3Analyse or construct a relative URL
global_url/3Make relative URL global
http_location/2Analyse or construct location
www_form_encode/2Encode or decode form-data

D.4.8 library(clp/bounds)

in/2Define interval for variable
#>/2Greater than constraint
#</2Less than constraint
#>=/2Greater or equal constraint
#=</2Less of equal constraint
#\=/2Non-equal constraint
#=/2Equality constraint
#<=>/2Constraint equivalence
#<=/2Constraint implication to the left
#=>/2Constraint implication to the right
all_different/1Constraint all values to be unique
indomain/1Enumerate values from domain
label/1Solve constraints for variables
lex_chain/1Constraint on lexicographic ordering
sum/3Constraint sum of variables
tuples_in/2Symbolic constraints on tuples

D.4.9 library(clp/clp_distinct)

all_distinct/1Demand distinct values
vars_in/2Declare domain of variable as set
vars_in/3Declare domain of variable as interval

D.4.10 library(clp/simplex)

assignment/2Solve assignment problem
constraint/3Add linear constraint to state
constraint/4Add named linear constraint to state
gen_state/1Create empty linear program
maximize/3Maximize objective function in to linear constraints
minimize/3Minimize objective function in to linear constraints
objective/2Fetch value of objective function
shadow_price/3Fetch shadow price in solved state
transportation/4Solve transportation problem
variable_value/3Fetch value of variable in solved state

D.4.11 library(clpqr)

entailed/1Check if constraint is entailed
inf/2Find the infimum of an expression
sup/2Find the supremum of an expression
min/1Minimizes an expression
max/1Maximizes an expression
bb_inf/3Infimum of expression for mixed-integer problems
bb_inf/4Infimum of expression for mixed-integer problems
bb_inf/5Infimum of expression for mixed-integer problems
dump/3Dump constraints on variables

D.4.12 library(prologxref)

called_by/2(hook) Extend cross-referencer
xref_built_in/1Examine defined built-ins
xref_called/3Examine called predicates
xref_clean/1Remove analysis of source
xref_current_source/1Examine cross-referenced sources
xref_defined/3Examine defined predicates
xref_exported/2Examine exported predicates
xref_module/2Module defined by source
xref_source/1Cross-reference analysis of source