Generator (computer programming): Difference between revisions

Content deleted Content added
Fredrik (talk | contribs)
m copy-friendly code
Fredrik (talk | contribs)
m fmt
Line 25:
Generators can be used to loop through the values of a list lazily. This is useful when only the first few items of the list are likely to be needed, and calculating the entire list would be costly or impractical.
 
==References:==
 
* Stephan Murer, Stephen Omohundro, David Stoutamire and Clemens Szyperski: Iteration abstraction in Sather. ''ACM Transactions on Programming Languages and Systems'', 18(1):1-15 (1996) [http://portal.acm.org/citation.cfm?doid=225540.225541]