Skip to content

Instantly share code, notes, and snippets.

Last active Feb 14, 2018
What would you like to do?
def function_name (iterable, f):
result = None
for x in iterable:
if f(x):
result = x
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment