Message194428
FWIW, I like this. It would be a nice addition to the itertools module. +1
The `key` argument should be renamed to `pred`, as others have said.
As to the name, I like "first_true". Does what it says. Plain "first" is misleading, and "coalesce" is both inscrutable and nearly impossible to spell ;-) |
|
Date |
User |
Action |
Args |
2013-08-04 21:25:26 | tim.peters | set | recipients:
+ tim.peters, loewis, rhettinger, mark.dickinson, ncoghlan, r.david.murray, lukasz.langa, hynek, serhiy.storchaka |
2013-08-04 21:25:26 | tim.peters | set | messageid: <1375651526.41.0.839819504509.issue18652@psf.upfronthosting.co.za> |
2013-08-04 21:25:26 | tim.peters | link | issue18652 messages |
2013-08-04 21:25:26 | tim.peters | create | |
|