$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PLT-X2 Lambda
Search
kanaya
June 02, 2024
0
88
PLT-X2 Lambda
kanaya
June 02, 2024
Tweet
Share
More Decks by kanaya
See All by kanaya
PLT-A4 IO Monad
kanaya
0
14
PLT-14 IO Monad
kanaya
0
21
SCA-07 Art and Entertainment
kanaya
0
83
PLT-A3 Maybe Monad
kanaya
0
31
PLT-A2 Closure
kanaya
0
31
PLT-A1 Programming Principles
kanaya
0
25
PLT-X1 Division by Zero and Maybe
kanaya
1
60
IUM-03-Short Series of Functions
kanaya
0
130
PLT-02 How to Count Words
kanaya
0
88
Featured
See All Featured
Testing 201, or: Great Expectations
jmmastey
46
7.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
The World Runs on Bad Software
bkeepers
PRO
72
12k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
120
20k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
355
21k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
Scaling GitHub
holman
464
140k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
54k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Transcript
pineapple.cc ۚ୩Ұ࿕ʢ࡚େֶใσʔλՊֶ෦ʣ ϥϜμࣜ ϓϩάϥϛϯάݴޠ
pineapple.cc λ lambda
pineapple.cc f(x) = ax + b def f(x): return a
* x + b f x = a * x + b Math Python Haskell 1⃣ 2⃣ 3⃣
pineapple.cc Math Math f(x) = ax + b Math f
= x → ax + b f = ̂ x . ax + b 1⃣ 2⃣ 3⃣
pineapple.cc f = λx → ax + b f =
lambda x: a*x+b f = \x -> a*x+b Math Python Haskell 1⃣ 2⃣ 3⃣
pineapple.cc Math Math z = g(y), y = f(x) Math
z = g (f(x)) z = (g ∙ f)(x) 1⃣ 2⃣ 3⃣
pineapple.cc h(x) = (g ∙ f)(x) def h(x): return g(f(x))
h = \x -> g (f x) Math Python Haskell 1⃣ 2⃣ 3⃣
pineapple.cc h = g ∙ f h = lambda x:
g(f(x)) h = g.f Math Python Haskell 1⃣ 2⃣ 3⃣
pineapple.cc y = (λx → 2x + 1)(3) y =
(lambda x: 2*x+1)(3) y = (\x -> 2*x+1)3 Math Python Haskell 1⃣ 2⃣ 3⃣
pineapple.cc Ϛοϓ 1ZUIPO Map in Python xs = [1, 2,
3] ys = list(map(lambda x: x*2+1, xs)) print(ys) Python
pineapple.cc Ϛοϓ )BTLFMM Map in Haskell Haskell xs = [1,
2, 3] ys = map (\x -> x*2+1) xs main = print ys
pineapple.cc @kanaya