Message94939
I don't want to pollute python-dev with more hopeless ideas, but I wonder
if itertools could grow an efficient C-implemented
def first(collection):
return next(iter(collection))
On the other hand, it probably belongs to recipes more than stdlib. This
is not really an iterator tool after all. |
|
Date |
User |
Action |
Args |
2009-11-05 18:57:35 | belopolsky | set | recipients:
+ belopolsky, rhettinger, benjamin.peterson, wrichert |
2009-11-05 18:57:35 | belopolsky | set | messageid: <1257447455.52.0.29105584299.issue7212@psf.upfronthosting.co.za> |
2009-11-05 18:57:34 | belopolsky | link | issue7212 messages |
2009-11-05 18:57:33 | belopolsky | create | |
|