Consume an iterable

Duncan Booth duncan.booth at invalid.invalid
Sat Jan 23 07:58:44 EST 2010


Peter Otten <__peter__ at web.de> wrote:

> With next(islice(...), None) I seem to have found a variant that beats
> both  competitors.
> 
It has different behaviour for n==0 but I'm sure that's easily fixed.



More information about the Python-list mailing list