Created
February 14, 2018 20:27
-
-
Save tkheyfets/15a654c71335bf52c09c3c924256d55b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def function_name (iterable, f, i = None): | |
result = i | |
for x in iterable: | |
result = f(result, x) | |
return result | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment