Question: Write a function, called union: a list* a list a list, that when called with two lists, denoting sets, returns their union. In other
Write a function, called union: "a list* "a list "a list, that when called with two lists, denoting sets, returns their union. In other words, union(s1,s2) = s1 U s2 where s1 and s2 are lists. Recall that sets may not contain duplicate elements. (Hence s1 U s2 may not contain duplicate elements).
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
