Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ log_sum_for_reduce
Function
log_sum_for_reduce
example_code/item_039.py:78–79 ·
view source on GitHub ↗
(total, value)
Source
from the content-addressed store, hash-verified
76
77
print(
"Example 4"
)
78
def
log_sum_for_reduce(total, value):
79
return
log_sum_alt(value, total)
80
81
result = functools.reduce(
82
log_sum_for_reduce,
Callers
nothing calls this directly
Calls
1
log_sum_alt
Function · 0.85
Tested by
no test coverage detected