Generator (computer programming): Difference between revisions

Content deleted Content added
m <syntaxhighlight>; <pre> for unsupported lang
m R: <ref>
Line 548:
===R===
 
The iterators package can be used for this purpose.<ref>{{cite web|url=http://stackoverflow.com/a/16028448/4745348}}</ref><ref>http://cartesianfaith.wordpress.com/2013/01/05/infinite-generators-in-r/</ref>
 
<syntaxhighlight lang="r">
# See http://stackoverflow.com/a/16028448/4745348 and http://cartesianfaith.wordpress.com/2013/01/05/infinite-generators-in-r/
 
library(iterators)