Is there any easy way to change a [[int]] to [int] or to compare them in this form to find out if there are missing elements.
For example
set1= [[1,2,3]]
set2= [2,3,]
to return [1]. I tried this:
return s1 s2= [x|x<-s1,y<-s2, x/=y]
Follow up Question: how can I prevent duplicates being returned eg if
set1 = [[1,1,1,2,3]
how can I get the return function to give me only [1]