Function
collatz_logic
(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
Tested by
no test coverage detected