Can you please explain What Is Recursion In Prolog?

DWQA QuestionsCategory: PrologCan you please explain What Is Recursion In Prolog?
Editor Staff asked 11 months ago

Can you please explain What Is Recursion In Prolog?

1 Answers
Editor Staff answered 11 months 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.