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
20241128 カリー化
Search
saka
December 23, 2025
6
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20241128 カリー化
saka
December 23, 2025
More Decks by saka
See All by saka
20250304 関数型DDD 6
sakatttttta
0
25
20241219 Github Actionsの面倒いところ
sakatttttta
0
18
20250109 関数型
sakatttttta
0
11
20250116 関数型DDD 2
sakatttttta
0
11
20250123 関数型DDD 3
sakatttttta
0
11
20250206 関数型DDD 4
sakatttttta
0
11
20250213 関数型DDD 4
sakatttttta
0
12
20250220 Hono カスタムfetch
sakatttttta
0
10
20250225 関数型DDD 5
sakatttttta
0
9
Featured
See All Featured
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
950
Making the Leap to Tech Lead
cromwellryan
135
10k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
How Software Deployment tools have changed in the past 20 years
geshan
2
35k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
430
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Making Projects Easy
brettharned
120
6.8k
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Transcript
ΧϦʔԽͬͯͬͯ·͢ʁ
ॳ
ͳͥΦϒδΣΫτࢦͰ ࡞Δͷ͔
ͷؔܕݴޠͷ ίʔφʔ
ୈҰڃؔ ෦ద༻
ୈҰڃؔ ᵓᴷᴷ ΧϦʔԽ │ └── ҾΛ1ͭͣͭड͚औΔؔʹม └── ෦ద༻ └── Ұ෦ͷҾΛݻఆͯ͠৽͍ؔ͠Λ࡞
ୈҰڃؔ
ؔΛมͱಉ͡Α͏ʹ ͑Δ
// ੜ let calc = (x: number, y: number): number
=> x + y; console.log(calc(3, 4)); // ݁Ռ: 7
ߴ֊ؔ
ҾฦΓʹؔ
// ೖ calc = (x: number, y: number): number =>
x - y; // ड͚͠ const diffLength = (a: string, b: string, fn: (x: number, y: number) => number): number => { return fn(a.length, b.length); }; console.log(diffLength('aaa', 'a', calc)); // 2
෦ద༻
const add = (a: number, b: number) => a +
b; // ෦ద༻Ͱʮa = 2ʯΛݻఆ const add2 = (b: number) => add(2, b); console.log(add2(3)); // 5
ΧϦʔԽ
// ௨ৗͷؔ function add(a: number, b: number): number { return
a + b; } // ΧϦʔԽ͞Εͨؔ const curriedAdd = (a: number) => (b: number) => a + b; console.log(curriedAdd(2)(3)); // 5 const curriedAdd2 = curryAdd(2); const result = curryAdd2(3); // 5