Wrapping around a list
Chris Angelico
rosuav at gmail.com
Wed Nov 27 05:53:54 EST 2013
On Wed, Nov 27, 2013 at 9:46 PM, <amjadcsu at gmail.com> wrote:
> So the question i am asking , how can i add wrapping around sublist in my sliding window function.
By the look of what you now have, the easiest way would probably be to
duplicate the list before you slide. So instead of working on "LEQN",
you work on "LEQNLEQN" - or possibly "LEQNLEQ", or other shortened
versions, if it's easier than pulling out the duplicates.
ChrisA
More information about the Python-list
mailing list