First time here? Check out the FAQ!
answered 4 years ago
Generate partitions of list(range(len(L))) and apply k↦L[k] to each element in each part?
list(range(len(L)))