Rotating lists?

Ivan Voras ivoras at __-geri.cc.fer.hr
Thu Sep 16 17:12:26 CEST 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