Timeline for Get the first item from an iterable that matches a condition
Current License: CC BY-SA 2.5
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 2, 2010 at 16:55 | comment | added | Mike Graham | There is no reason to evaluate the whole iterable (which may not be possible). It is more robust and efficient to use one of the other solutions provided. | |
Mar 2, 2010 at 8:54 | history | edited | Mizipzor | CC BY-SA 2.5 |
fixed error
|
Mar 2, 2010 at 8:54 | comment | added | Mizipzor | My bad, should be list comprehension not a generator, fixed... thanks! :) | |
Mar 2, 2010 at 8:42 | comment | added | Josh Lee | TypeError: 'generator' object is unsubscriptable | |
Mar 2, 2010 at 8:34 | history | answered | Mizipzor | CC BY-SA 2.5 |