MCPcopy Create free account
hub / github.com/SWI-Prolog/packages-jpl / getSubst

Method getSubst

src/main/java/org/jpl7/Term.java:834–836  ·  view source on GitHub ↗

This method computes a substitution from a Term (the current object). The bindings Map varnames_to_Terms maps names of Variables to Terms. Thus, a substitution is as it is in mathematical logic, a sequence of the form \sigma = {t_0/x_0, ..., t_n/x_n}. Once the substitution is computed, the substitut

(Map<String, Term> varnames_to_Terms, Map<term_t, Variable> vars_to_Vars)

Source from the content-addressed store, hash-verified

832 * A Map holding the Variables that occur thus far in the term; keyed by internal (Prolog) string rep.
833 */
834 protected void getSubst(Map<String, Term> varnames_to_Terms, Map<term_t, Variable> vars_to_Vars) {
835 // overridden in Compound, Variable
836 }
837
838 /**
839 * Just calls computeSubstitution for each Term in the array.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected