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
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
55
ddd.pdf
nodew
0
220
An Introduction to Haskell
nodew
2
93
es6 proxy overview
nodew
1
68
Other Decks in Programming
See All in Programming
The Less-Told Story of Socket Timeouts
coe401_
3
320
Radical Imagining - LIFT 2025-2027 Policy Agenda
lift1998
0
370
Lightning-Fast Method Calls with Ruby 4.1 ZJIT / RubyKaigi 2026
k0kubun
3
410
PCOVから学ぶコードカバレッジ #phpcon_odawara
o0h
PRO
0
270
JOAI2026 1st solution - heron0519 -
heron0519
0
140
Liberating Ruby's Parser from Lexer Hacks
ydah
2
1.3k
実用!Hono RPC2026
yodaka
2
230
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
3
310
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
220
おれのAgentic Coding 2026/03
tsukasagr
1
150
Alternatives to JPA 2026
debop
0
110
アーキテクチャモダナイゼーションとは何か
nwiizo
19
5.3k
Featured
See All Featured
Designing Experiences People Love
moore
143
24k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
260
Statistics for Hackers
jakevdp
799
230k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
1
2k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
680
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Un-Boring Meetings
codingconduct
0
270
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.6k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
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