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
PLT-A4 IO Monad
Search
kanaya
August 02, 2025
Education
0
27
PLT-A4 IO Monad
kanaya
August 02, 2025
Tweet
Share
More Decks by kanaya
See All by kanaya
PLT-14 IO Monad
kanaya
0
34
SCA-07 Art and Entertainment
kanaya
0
92
PLT-A3 Maybe Monad
kanaya
0
40
PLT-A2 Closure
kanaya
0
46
PLT-A1 Programming Principles
kanaya
0
32
PLT-X1 Division by Zero and Maybe
kanaya
1
73
IUM-03-Short Series of Functions
kanaya
0
150
PLT-02 How to Count Words
kanaya
0
100
IMU-00 Pi
kanaya
0
410
Other Decks in Education
See All in Education
OSINT入門-CTF for GIRLS_SECCON14電脳会議
nomizone
0
870
HCI Research Methods - Lecture 7 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.4k
✅ レポート採点基準 / How Your Reports Are Assessed
yasslab
PRO
0
290
【ベテランCTOからのメッセージ】AIとか組織とかキャリアとか気になることはあるけどさ、個人の技術力から目を背けないでやっていきましょうよ
netmarkjp
2
3.7k
JAPAN AI CUP Prediction Tutorial
upura
2
880
インシデント対応
akira345
0
200
渡辺研Slackの使い方 / Slack Local Rule
kaityo256
PRO
11
11k
コマンドラインを見直そう(1995年からタイムリープ)
sapi_kawahara
0
690
GOBUSATA紹介
chankawa919
0
120
Web 2.0 Patterns and Technologies - Lecture 8 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
国際卓越研究大学計画|Science Tokyo(東京科学大学)
sciencetokyo
PRO
0
48k
1111
cbtlibrary
0
280
Featured
See All Featured
Navigating Weather and Climate Data
rabernat
0
130
Prompt Engineering for Job Search
mfonobong
0
180
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Odyssey Design
rkendrick25
PRO
2
530
Skip the Path - Find Your Career Trail
mkilby
0
71
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
77
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Color Theory Basics | Prateek | Gurzu
gurzu
0
220
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.3k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
480
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Transcript
pineapple.cc ۚ୩Ұ࿕ʢ࡚େֶใσʔλՊֶ෦ʣ ʲิʳ*0Ϟφυ ϓϩάϥϛϯάݴޠ
pineapple.cc Value Func Value’ x′  = fx
pineapple.cc Value Func Value’ Func3 Func2 Func1 • • x′
 = (h ∙ g ∙ f)x
pineapple.cc x = (user input)
pineapple.cc toUpper :: Char -> Char x :: [Char] y
:: [Char] x = “Hello, world.” y = map toUpper x
pineapple.cc x’ :: IO [Char] y’ :: IO [Char] x’
= getLine y’ = map toUpper x’ — ERROR!! toUpper :: Char -> Char x :: [Char] y :: [Char] x = “Hello, world.” y = map toUpper x
pineapple.cc x’ :: IO [Char] y’ :: IO [Char] x’
= getLine y’ = fmap (map toUpper) x’ toUpper :: Char -> Char x :: [Char] y :: [Char] x = “Hello, world.” y = map toUpper x
pineapple.cc x’ :: IO [Char] y’ :: IO [Char] x’
= getLine y’ = (toUpper <$>) <$> x’ toUpper :: Char -> Char x :: [Char] y :: [Char] x = “Hello, world.” y = toUpper <$> x ผղ
pineapple.cc Value Func Value’ Value Func Value’