|Did you know ...||Search Documentation:|
:- use_module(library(terms)).(can be autoloaded)
call(Goal, ST1, ST2)succeeds. Procedurably, the mapping for each (sub) term pair
T1/T2is defined as:
call(Goal, T1, T2)succeeds we are done. Note that the mapping does not continue in T2. If this is desired, Goal must call mapsubterms/3 explicitly as part of its conversion.
Both predicates are implemented using foldsubterms/5.