Question: The Haskell operation for list difference is predefined as in List.hs. Write your own version of this. Give implementations of the operations unionSet, intersectSet
The Haskell operation for list difference is predefined as \\ in List.hs. Write your own version of this.
Give implementations of the operations
unionSet, intersectSet and differenceSet,
in terms of inSet, insertSet and deleteSet.
In an implementation of sets as lists without duplicates, the implementation of insertSet has to be changed. How?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
