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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Joe Wang
August 19, 2018
Programming
740
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
54
ddd.pdf
nodew
0
210
An Introduction to Haskell
nodew
2
92
es6 proxy overview
nodew
1
66
Other Decks in Programming
See All in Programming
Codex CLI でつくる、Issue から merge までの開発フロー
amata1219
0
280
20260315 AWSなんもわからん🥲
chiilog
2
180
2026-03-27 #terminalnight 変数展開とコマンド展開でターミナル作業をスマートにする方法
masasuzu
0
270
存在論的プログラミング: 時間と存在を記述する
koriym
5
750
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
300
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
320
事業会社でのセキュリティ長期インターンについて
masachikaura
0
210
How to stabilize UI tests using XCTest
akkeylab
0
150
20260313 - Grafana & Friends Taipei #1 - Kubernetes v1.36 的開發雜記:那些困在 Alpha 加護病房太久的 Metrics
tico88612
0
250
GC言語のWasm化とComponent Modelサポートの実践と課題 - Scalaの場合
tanishiking
0
140
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
5.4k
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.5k
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
280
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.2k
Accessibility Awareness
sabderemane
0
90
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
92
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Designing Powerful Visuals for Engaging Learning
tmiket
1
320
How to Talk to Developers About Accessibility
jct
2
170
Building an army of robots
kneath
306
46k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
470
WENDY [Excerpt]
tessaabrams
9
37k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Fireside Chat
paigeccino
42
3.9k
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