Can you please explain What Is Recursion In Prolog?

Category: PrologCan you please explain What Is Recursion In Prolog?
Editor">Editor Staff asked 2 years ago

Can you please explain What Is Recursion In Prolog?

1 Answers
Editor">Editor Staff answered 2 years ago

In any language, a function that can call itself until the goal has been succeed is referred as recursion. In Prolog, recursion happens when a predicate contains a goal that refers to itself.