I currently have a list of lists like
L = [['E2', 'C1', 'A1', 'B1', 'C2'], ['C1', 'D1', 'A1'], ['C1', 'C2']]
My aim is to compare L[i] against L[i+1] to make groups. For example, L[2] is a subset of L[0] so I would eliminate it. My two different list will be L[0] and L[1].
For this, if I can somehow explode the list of list into different list, it will be easily achievable by iterating cmp(L[i], L[i+1])
. By different list I mean, I will store each element as separate variable. => L_1 = L[0], L_2 = L[1] and L_3 = L[2].
zip only seems to do a kind of map between two lists. Can anyone suggest a function available?