"Backward"-Iterator - Beginners question
drsalists at gmail.com
Fri Nov 1 00:26:12 CET 2013
On Thu, Oct 31, 2013 at 2:29 PM, Ulrich Goebel <ml at fam-goebel.de> wrote:
> I'm locking for an "iterator" type with not only the .next() method, but
> with a .previous(), .first() and .last() method, so that I can through it
> from the beginning or from the end, and in both directions, even
> alternately (for example two steps forward, one backward, two steps
I'm thinking maybe you want a list.
list_ = list(my_iterator())
i = 0
i += 1
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list