Generator (computer programming): Difference between revisions

Content deleted Content added
m Python: PEP-8
Tags: Mobile edit Mobile web edit
Line 542:
 
// generator without an upper bound limit
for (letconst n of fibonacci()) {
console.log(n);
if (n > 10000) break;
Line 557:
 
// picks up from where you stopped
for (letconst n of fibGen) {
console.log(n);
if (n > 10000) break;