Rotating lists?

Ivan Voras ivoras at __-geri.cc.fer.hr
Thu Sep 16 11:12:26 EDT 2004


Raymond Hettinger wrote:
> 
> For earlier Pythons, concatenate list slices:  a[1:] + a[:1]
                                                          ^^^^^

That's what I missed :) I should've thought of that :)
Thanks!



More information about the Python-list mailing list