Generators for Engineers
A gentle introduction to infinite sequences.
Comments are moderated. It may take a few minutes before your comment appears.
Markdown is supported in your comments.
tee() is more complicated. It spawns iterators which are linked back to the original iterator. Basically, it lets you loop over the same iterator multiple times, at the same time. For example, let's say you need the moving average and deviation from the
noisy_sensor. This is wrong: