Skip to content

Instantly share code, notes, and snippets.

@jeffs
Created April 9, 2021 05:42
Show Gist options
  • Save jeffs/572345b9b08a2669543c45bf9b31f160 to your computer and use it in GitHub Desktop.
Save jeffs/572345b9b08a2669543c45bf9b31f160 to your computer and use it in GitHub Desktop.
Python's reduce function
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