Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PLT-X2 Lambda
Search
kanaya
June 02, 2024
0
89
PLT-X2 Lambda
kanaya
June 02, 2024
Tweet
Share
More Decks by kanaya
See All by kanaya
PLT-A4 IO Monad
kanaya
0
18
PLT-14 IO Monad
kanaya
0
24
SCA-07 Art and Entertainment
kanaya
0
85
PLT-A3 Maybe Monad
kanaya
0
33
PLT-A2 Closure
kanaya
0
34
PLT-A1 Programming Principles
kanaya
0
27
PLT-X1 Division by Zero and Maybe
kanaya
1
65
IUM-03-Short Series of Functions
kanaya
0
140
PLT-02 How to Count Words
kanaya
0
92
Featured
See All Featured
How to Think Like a Performance Engineer
csswizardry
28
2.4k
Heart Work Chapter 1 - Part 1
lfama
PRO
3
35k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
710
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Test your architecture with Archunit
thirion
1
2.1k
GitHub's CSS Performance
jonrohan
1032
470k
Six Lessons from altMBA
skipperchong
29
4.1k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
41
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
100
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
132
19k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
25
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