Returns the bindings in a rule instantiation.
kw
inst-bindings instantiation => bindings
instantiation⇩ |
An instantiation object. |
bindings |
An association list. |
The function inst-bindings
returns an association list of the variables and their bindings in instantiation. The variables are those produced by the condition part of the forward chaining rule.
For an instantiation of a rule with the precondition:
(object ? color ?color-value size ?size)
the value returned by:
(inst-bindings inst)
might be:
((?color-value . :red) (?size . 20))
KnowledgeWorks and Prolog User Guide (Windows version) - 01 Dec 2021 19:36:03