(b) (14 pts) Write the rules for a predicate isSubset(A,S), which succeeds if the set A is a subset of the set S. The fo
Posted: Mon May 09, 2022 6:06 am
(b) (14 pts) Write the rules for a predicate isSubset(A,S),
which succeeds if the set A is a
subset of the set S. The following query shows an example of using
this predicate:
?- isSubset([2,5], [1,5,3,2]).
Yes
which succeeds if the set A is a
subset of the set S. The following query shows an example of using
this predicate:
?- isSubset([2,5], [1,5,3,2]).
Yes