Version 7 of generators

Updated 2007-01-30 13:57:08

A part of Concurrency concepts.

Generators are a fundamental part of the Icon programming language [L1 ] and were later borrowed by other languages. In Icon generators and co-expressions are related but not identical. (Added by escargo 10/24/2002)

[also called "co-expressions", or, by Donald E. Knuth, "semi-coroutines"]

Generators are big in modern Python.


LV So, would someone like to add some info on what a generator is, and how it differs from iterators or co-expressions?


Category Concept