[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Attempt to explain a monad in 140 characters or less.

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 13
Thread images: 3

File: Lambda-Calculus_3.png (35KB, 550x335px) Image search: [Google]
Lambda-Calculus_3.png
35KB, 550x335px
Attempt to explain a monad in 140 characters or less.
>>
>>58089447
If F and G are a pair of adjoint functors, and F is left adjoint to G, then the composition of F and G is a monad.
>>
>>58089447
A monad is a box you put stuff in, but with context.
>>
map objects O to other objects OO
map two OO’s to a OO

I.e.:
1) Map „hi“ + „m8“ to [h][i] + [m][8]
2) Concat: [h][i][m][8]
3) Map back: „him8“
>>
>>58089505
Soooo a list?
>>
File: monad_diagram.png (26KB, 334x358px) Image search: [Google]
monad_diagram.png
26KB, 334x358px
>>
>>58090310
Yes. A list is one type of monad.
>>
File: 1481957500692.png (1MB, 1128x1080px) Image search: [Google]
1481957500692.png
1MB, 1128x1080px
>>58089447
A tiling window manager.
>>
>>58089505
So it's a stateful container?

inb4 it's a burrito
>>
>>58089471
>167 characters
>>
>>58091050
More like 130
>>
>>58089447
>140 characters or less
Twitter generation please kill yourself.
- sincerely, the Doom generation
>>
It's like a list: [Int] is a "list of integers" so you cannot use numeric operations directly on it, so you need a "wrapper" function such as map, that performs the operation on the "sub-types" of the list while keeping a list.

At the end I don't understand exactly which part is the monad: whether it's the wrapper type or the wrapper function
Thread posts: 13
Thread images: 3


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.