Question: Please answer question in regaurd to programming language prolog: Consider this definition of member / 2 , which is true when a list contains a
Please answer question in regaurd to programming language prolog: Consider this definition of member which is true when a list contains a particular element.
member
member : member
Consider the two queries below. Why do they have different behavior?
member
member
In the first query, member L will find infinitely many lists containing but all except for one will be rejected
In the second query, member L will find infinitely many lists containing but all except for one will be rejected
These queries will have the same behavior
Both queries have no defined behavior, and all things are possible
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
