I have two lists of lists:
arr1 = [[1,2,3],
[2,5,1,1],
[3,1,1]]
arr2 = [[2,3,6,1],
[8,1,3],
[5,5,6]]
I need to check which elements from arr2 aren't contained in arr1 and delete those elements from arr2.
So result must be:
arr2 = [[2,3,1],
[1,3],
[5,5]]
6 and 8 aren't contained in arr1, so it deleted in arr2.
How to do that?