Author(s): Francisco Bueno.
Version: 1.10#7 (2006/4/26, 19:22:13 CEST)
Version of last change: 1.9#99 (2003/8/27, 17:56:12 CEST)
vndict
):- use_module(library(vndict)).
vndict
)
Usage: null_dict(D)
D
is an empty dictionary.
Usage: create_dict(Term, Dict)
Dict
has names for all variables in Term
.
Term
is any term.
(basic_props:term/1
)
Dict
is a dictionary of variable names.
(vndict:varnamedict/1
)
Usage: complete_dict(+Dict, +Term, -NewDict)
NewDict
is Dict
augmented with the variables of Term
not yet in Dict
.
Usage: complete_vars_dict(+Dict, +Vars, -NewDict)
NewDict
is Dict
augmented with the variables of the list Vars
not yet in Dict
.
Usage: prune_dict(+Term, +Dict, -NewDict)
NewDict
is Dict
reduced to just the variables of Term
.
Usage: sort_dict(D, Dict)
D
is sorted into Dict
.
D
is a dictionary of variable names.
(vndict:varnamedict/1
)
Dict
is a dictionary of variable names.
(vndict:varnamedict/1
)
Usage: dict2varnamesl(Dict, VNs)
Dict
to VNs
.
Dict
is a dictionary of variable names.
(vndict:varnamedict/1
)
VNs
is a list of Name=Var
, for a variable Var
and its name Name
.
(vndict:varnamesl/1
)
Usage: varnamesl2dict(VNs, Dict)
VNs
to Dict
.
VNs
is a list of Name=Var
, for a variable Var
and its name Name
.
(vndict:varnamesl/1
)
Dict
is a dictionary of variable names.
(vndict:varnamedict/1
)
find_name(Vars, Names, V, Name)
Given that vars_names_dict(Dict,Vars,Names)
holds, it acts as rename(X,Dict)
, but the name of X
is given as Name
instead of unified with it.
Usage: rename(Term, Dict)
Term
with its name in Dict
. If no name is found, a new name is created.
Dict
is a dictionary of variable names.
(vndict:varnamedict/1
)
Usage: varname(N)
N
is a term representing a variable name.
Usage: varnamesl(D)
D
is a list of Name=Var
, for a variable Var
and its name Name
.
Usage: varnamedict(D)
D
is a dictionary of variable names.
Usage: vars_names_dict(Dict, Vars, Names)
Varss
is a sorted list of variables, and Names
is a list of their names, which correspond in the same order.
Dict
is a dictionary of variable names.
(vndict:varnamedict/1
)
Vars
is a list.
(basic_props:list/1
)
Names
is a list.
(basic_props:list/1
)
Go to the first, previous, next, last section, table of contents.