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 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
Get step-by-step solutions from verified subject matter experts
