Generator (computer programming): Difference between revisions

Content deleted Content added
m Java: ty
Line 358:
</syntaxhighlight>
 
An infinite Fibonacci sequence could also be written intin '''Java 7''' as an Iterator:
<syntaxhighlight lang="java">
Iterable<Integer> fibo = new Iterable<Integer>() {