Generator (computer programming): Difference between revisions

Content deleted Content added
links
m unlink "constructs" (constructs, as found in programming languages, only have incidental/indirect overlap with what's described in Grammatical construction)
Line 5:
at which time the innermost loop enclosing the generator invocation is terminated.
 
In the presence of generators, loop [[grammatical construction|constructs]] of a language can be reduced into a single loop ... end loop construct; all the usual loop constructs can then be comfortably simulated by using suitable generators in the right way.
 
In the [[Python programming language]], a '''generator''' is a special type of [[continuation]] that can be used as an [[iterator]].