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.
This is not the typical use case, however. Wrapping the generator in
list() removes any benefits. A more practical case would apply the moving average to cut through sensor noise.