I have:
aa = {{1, 1}, {2, 2}}
bb = {{4, 4}, {5, 5}}
cc = {{a, {1, 1}}, {b, {2, 2}}, {c, {3, 3}}, {d, {4, 4}}, {e, {5, 5}}, {f, {6, 6}}}
How can I select all elements form cc
that contain all elements from aa
as well as from bb
?
The result should be:
{{a, {1, 1}}, {b, {2, 2}}, {d, {4, 4}}, {e, {5, 5}}}
a
andb
, they will not show up inc
. $\endgroup$