Returns the first item in the list for which function(item) is True, None otherwise.
(function, iterable)
| 52 | ### LIST FUNCTIONS ################################################################################# |
| 53 | |
| 54 | def find(function, iterable): |
| 55 | """ Returns the first item in the list for which function(item) is True, None otherwise. |
| 56 | """ |
| 57 | for x in iterable: |
| 58 | if function(x) == True: |
| 59 | return x |
| 60 | |
| 61 | _zip = zip |
| 62 | def zip(*args, **default): |
no outgoing calls
no test coverage detected
searching dependent graphs…