Design a PROLOG program unique(Bag, Set) that takes a Bag (a list that may contain duplicate elements)

Question:

Design a PROLOG program unique(Bag, Set) that takes a Bag (a list that may contain duplicate elements) and returns a Set (no elements are repeated).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: