Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ via_reduce
Function
via_reduce
Lib/test/test_math_property.py:15–16 ·
view source on GitHub ↗
(x, y, steps)
Source
from the content-addressed store, hash-verified
13
14
15
def
via_reduce(x, y, steps):
16
return
functools.reduce(nextafter, [y] * steps, x)
17
18
19
class
NextafterTests(unittest.TestCase):
Callers
1
test_count
Method · 0.85
Calls
1
reduce
Method · 0.45
Tested by
no test coverage detected