In “cuts” What Is The Parent Goal In Prolog?

Category: PrologIn “cuts” What Is The Parent Goal In Prolog?
Editor">Editor Staff asked 2 years ago

In “cuts” What Is The Parent Goal In Prolog?

1 Answers
Editor">Editor Staff answered 2 years ago

When running the subgoals in a rule’s body, the parent goal is referred to the goal that caused the matching of the head of the current rule.