Unrelated: In python, how would one go from...

Unrelated: In python, how would one go from [1,2,3,3,4,4,2,1] to [1,[2,[3,3, [4,4]],2],1]? I've got a recursive groupby thing that fails.
Loading...