Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
780
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
250
An Introduction to Reactive Programming based on RxJS
nodew
0
68
ddd.pdf
nodew
0
240
An Introduction to Haskell
nodew
2
96
es6 proxy overview
nodew
1
83
Other Decks in Programming
See All in Programming
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
1k
contenteditable と日本語入力に向き合う
colorful12
0
220
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
1
200
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
210
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
810
気持ちぃ〜角丸 Squircle
ryu1013
0
340
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
3
720
Modernizing iOS Apps
seyfoyun
0
120
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
1.1k
R8 の設定見直しでアプリサイズ削減
andpad
0
230
最近”作らせてる” ローカルAIアプリの話
akit37
0
500
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
370
Featured
See All Featured
Accessibility Awareness
sabderemane
1
260
Paper Plane
katiecoart
PRO
5
54k
New Earth Scene 8
popppiees
4
2.7k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
420
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
270
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
960
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
A better future with KSS
kneath
240
18k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
410
Un-Boring Meetings
codingconduct
0
460
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