Generator (computer programming): Difference between revisions

Content deleted Content added
Line 317:
</syntaxhighlight>
 
===Javamava===
Java has had a standard interface for implementing iterators since its early days, and since Java 5, the "foreach" construction makes it easy to loop over objects that provide the <tt>java.lang.Iterable</tt> interface. (The [[Java collections framework]] and other collections frameworks, typically provide iterators for all collections.)