For i of myriad | Toph Tucker | Observable
ojs
ojs
ojs
ojs
ojs
ojs
ojs
Author
Toph Tucker
@tophtucker
Worked at Businessweek, Kensho, and now Observable. Living in the Berkshires where my wife runs an inn, Avaloch.
Comments (3)
Visnu Pitiyanuvath
Jul 14, 2022
for (let i = 0; true; i++) yield i; or maybe for (let i = 0; i < Infinity; i++) yield I;
Reply
Visnu Pitiyanuvath
Jul 14, 2022
function* naturalNumbers() { let i = 1; while (true) { yield i++; } } though supposedly ISO 80000-2 specifies starting at 0. 🤔
Jul 14, 2022
I kinda wish d3.range returned an iterator.
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
1
Follow
Follow
For i of myriad | Toph Tucker | Observable