MCPcopy 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
15def via_reduce(x, y, steps):
16 return functools.reduce(nextafter, [y] * steps, x)
17
18
19class NextafterTests(unittest.TestCase):

Callers 1

test_countMethod · 0.85

Calls 1

reduceMethod · 0.45

Tested by

no test coverage detected