Skip to content

Instantly share code, notes, and snippets.

@tkheyfets
Created February 15, 2018 04:32
Embed
What would you like to do?
def function_name (iterable, f, i = None):
result = i
for x in iterable[::-1]:
result = f(result, x)
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment