Excuse me, but extraordinarily  I agree with D'Aprano :D

Usually if you want the first element of an iterable, you have just to do:

```
it = iter(iterable)
first = next(it)
```

Yes, `first()` is really sexy... but a simple question: where is the iterator?

With the code above, I can continue to use the iterable to access the rest of 
the iterable. `first()` creates an iterator, uses it and throw it  away. What a 
waste! Greta Thunberg is very angry with you all :D

So 200 posts for one line less? I really don't catch the point.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/X3SGPDEFJHKSNYXIW66AWJOW3PAKCOGQ/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to