Question: Write a Prolog program that takes two lists, and checks if all members of the first list are also members of the second list. Name

 Write a Prolog program that takes two lists, and checks if

Write a Prolog program that takes two lists, and checks if all members of the first list are also members of the second list. Name your source code members.pl. Here are some example queries: ?- members ([a, cl, [a, b, c, d]) true members (Id, a, c, a], [a, b, c, d, e]) true - members ([b, e, a, b, c, d]) false ?- members ([], [a, b, c, d]) true

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!