MCPcopy 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
77print("Example 4")
78def log_sum_for_reduce(total, value):
79 return log_sum_alt(value, total)
80
81result = functools.reduce(
82 log_sum_for_reduce,

Callers

nothing calls this directly

Calls 1

log_sum_altFunction · 0.85

Tested by

no test coverage detected