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.

What makes islice really different is that the ending bound is optional, by setting it to None. To make all even numbers greater than four, just use islice(count(), 4, None, 2).

Mail: (not shown)

Please type this: