Created
April 9, 2021 05:42
-
-
Save jeffs/572345b9b08a2669543c45bf9b31f160 to your computer and use it in GitHub Desktop.
Python's reduce function
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
from functools import reduce | |
result = reduce(update, items, initial_value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment