MCPcopy Index your code
hub / github.com/bslatkin/effectivepython / run_cascading

Function run_cascading

example_code/item_046.py:164–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162
163print("Example 11")
164def run_cascading():
165 amplitudes = [7, 7, 7, 2, 2, 2, 2, 10, 10, 10, 10, 10]
166 it = complex_wave_cascading(iter(amplitudes)) # Supplies iterator
167 for amplitude in amplitudes:
168 output = next(it)
169 transmit(output)
170
171run_cascading()

Callers 1

item_046.pyFile · 0.85

Calls 2

complex_wave_cascadingFunction · 0.85
transmitFunction · 0.85

Tested by

no test coverage detected