I have an array like
sets=[ [ ['a', 'c'] , ['a', 'e'] ] , [ ['b', 'c'] , ['b', 'e'] ] , [ ['a','z'] ] ]
I wanted the reduced dimension of list and remove common element in the innerlists
My expected output is
[['a','c','e'] , ['b','c','e'] , ['a','z'] ]