Describe the behavior of the PROLOG interpreter when the following goal is submitted: ?-_to (a, [a, b, c])

1. Consider the fragment of the previous exercise. Suppose you eliminate the cut from the first clause and, in addition, you interchange the two clauses. Describe the behavior of the PROLOG interpreter when the following goal is submitted: ?-_to (a, [a, b, c]) 2. The special goal fail is yet another feature provided by PROLOG. …

Describe the behavior of the PROLOG interpreter when the following goal is submitted: ?-_to (a, [a, b, c]) Read More »