Generator (computer programming): Difference between revisions

Content deleted Content added
Line 412:
// this could then be used as...
for (int f: fibonacci(10)) {
System.out.println("next Fibonacci number is " + f);
}
</source>