MCPcopy Index your code
hub / github.com/pathwaycom/pathway / collatz_logic

Function collatz_logic

python/pathway/tests/test_api.py:800–807  ·  view source on GitHub ↗
(s: api.Scope, iterated, iterated_with_universe, extra)

Source from the content-addressed store, hash-verified

798 return 3 * x + 1
799
800 def collatz_logic(s: api.Scope, iterated, iterated_with_universe, extra):
801 (t,) = iterated
802 assert not iterated_with_universe
803 assert not extra
804 col = s.map_column(
805 t, collatz_step, api.ColumnProperties(dtype=api.PathwayType.FLOAT)
806 )
807 return ([s.table(col.universe, [col])], [])
808
809 def build(s):
810 iterated = [

Callers

nothing calls this directly

Calls 1

tableMethod · 0.45

Tested by

no test coverage detected