MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / square_parallel

Method square_parallel

functional/test/test_functional.py:962–963  ·  view source on GitHub ↗
(it)

Source from the content-addressed store, hash-verified

960
961 @extend(parallel=True, name=name)
962 def square_parallel(it):
963 return [i ** 2 for i in it]
964
965 result = seq.range(100).square_parallel()
966 self.assertEqual(result.sum(), sum(expected))

Callers 1

test_custom_functionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected