Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Lazy List With Generator and Iterator
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Joe Wang
August 19, 2018
Programming
750
1
Share
Lazy List With Generator and Iterator
An Intro to lazy list implementation with generator and iterator.
Joe Wang
August 19, 2018
More Decks by Joe Wang
See All by Joe Wang
fastbuild-前端资源打包平台架构与设计及其他
nodew
0
220
An Introduction to Reactive Programming based on RxJS
nodew
0
56
ddd.pdf
nodew
0
220
An Introduction to Haskell
nodew
2
93
es6 proxy overview
nodew
1
71
Other Decks in Programming
See All in Programming
Firefoxにコントリビューションして得られた学び
ken7253
2
160
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
490
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
520
Agentic AI & UI: Arcitecture, HITL, Emerging Standards
manfredsteyer
PRO
0
100
Back to the roots of date
jinroq
0
860
AIを導入する前にやるべきこと
negima
2
360
ソースコード→AST→オペコード、の旅を覗いてみる
o0h
PRO
1
130
AI Agent と正しく分析するための環境作り
yoshyum
2
510
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
3
1.1k
書き換えて学ぶTemporal #fukts
pirosikick
2
380
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
1
110
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
170
Featured
See All Featured
The Spectacular Lies of Maps
axbom
PRO
1
750
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.6k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
52
エンジニアに許された特別な時間の終わり
watany
106
240k
Crafting Experiences
bethany
1
150
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
300
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
810
Testing 201, or: Great Expectations
jmmastey
46
8.1k
Speed Design
sergeychernyshev
33
1.7k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.7k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
170
Transcript
LAZY LIST WITH GENERATOR AND ITERATOR Joe Wang
Lazy List in Haskell Examples:
Can we do the same thing in JavaScript? Is there
any structure is lazy in JavaScript?
Lazy In JavaScript Function call
Lazy In JavaScript Generator
The Structure of Lazy List LAZY LIST SEQUENCE ITERATOR https://github.com/dtao/lazy.js
5000+star
Iterable Interfaces
Iterable ITERABLE Array String Map Set for…of… …itor Array.from
Infinite Fibonacci
Generator
Generator - repeat
Generator - iterate
Generator - cycle
Generator - map/filter
Generator - take
Generator - take
Usage
Usage
Usage
None
let’s wrap it
The End https://github.com/nodew/lazyList