Generator (computer programming): Difference between revisions

Content deleted Content added
ECMAScript: simplified fibonacci function
Line 361:
}
// this could then be used as...
for(int f:while (fibo.hasNext()) {
System.out.println("next Fibonacci number is " + f);
if (someCondition(f)) break;