>>> set([1, 4, 3]) == set([4, 3, 1])
True
list = [[0, 0, 0], [30, 15, 25], [20, 5, 15], [10, -5, 5], [0, -15, -5], [15,25,30]]
stack = []
set_to_index = {}
for i, trio in enumerate(list):
cur_set = frozenset(trio)
if cur_set in set_to_index:
print(f'found! l[{i}] = l[{set_to_index[cur_set]}] = {trio}')
else:
stack.append(trio)
set_to_index[cur_set] = i