| Did you know ... | Search Documentation: |
| Predicate mapsubterms/3 |
[det]mapsubterms(:Goal,
+Term1, -Term2)call(Goal, ST1, ST2) succeeds.
Procedurably, the mapping for each (sub) term pair T1/T2 is
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.