First time here? Check out the FAQ!
answered 2020-10-07 20:36:14 +0100
Generate partitions of list(range(len(L))) and apply $k \mapsto L[k]$ to each element in each part?
list(range(len(L)))