Returns the first item in the list for which function(item) is True, None otherwise.
(function, list)
| 8 | ### LIST FUNCTIONS ################################################################################# |
| 9 | |
| 10 | def find(function, list): |
| 11 | """ Returns the first item in the list for which function(item) is True, None otherwise. |
| 12 | """ |
| 13 | for item in list: |
| 14 | if function(item) == True: |
| 15 | return item |
| 16 | |
| 17 | ### MOOD ########################################################################################### |
| 18 |
no outgoing calls
no test coverage detected
searching dependent graphs…