Author(s): Francisco Bueno.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.11#35 (2003/8/28, 16:15:20 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.
Dict is currently a term which is not a free variable.
(term_typing:nonvar/1)
Term is currently a term which is not a free variable.
(term_typing:nonvar/1)
NewDict is a free variable.
(term_typing:var/1)
Usage: complete_vars_dict(Dict, Vars, NewDict)
NewDict is Dict augmented with the variables of the list Vars not yet in Dict.
Dict is currently a term which is not a free variable.
(term_typing:nonvar/1)
Vars is currently a term which is not a free variable.
(term_typing:nonvar/1)
NewDict is a free variable.
(term_typing:var/1)
Usage: prune_dict(Term, Dict, NewDict)
NewDict is Dict reduced to just the variables of Term.
Term is currently a term which is not a free variable.
(term_typing:nonvar/1)
Dict is currently a term which is not a free variable.
(term_typing:nonvar/1)
NewDict is a free variable.
(term_typing:var/1)
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 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(varnamedict(Dict), list(Vars), list(Names))
Varss is a sorted list of variables, and Names is a list of their names, which correspond in the same order.
Go to the first, previous, next, last section, table of contents.