[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]

What the fuck is a monad

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: 19
Thread images: 5

File: 1464548943313.jpg (27KB, 400x400px) Image search: [Google]
1464548943313.jpg
27KB, 400x400px
What the fuck is a monad
>>
>>58050192
Install Google Dictionary
>>
it's just a monoid in the category of endofuctors, dummy.
>>
>>58050192
the base material of everything
space-time, matter, energy...
the primordial information, basically god, but not in the demiurge way
>>
File: 1481925852299.jpg (263KB, 764x551px) Image search: [Google]
1481925852299.jpg
263KB, 764x551px
>tfw too intelligent for functional programming
>>
>>58050222
sketch
>>
I believe it's an anonymous function. So just a return of a decision, which parameters are provided by the utilizing function of the monad.
>>
You mean in philosophy? It is a term Leibniz invented to describe the indivisible smallest part of something metaphysical.

For example a thought can be split up in different categories and an idea is built up of parts. You could view it as some sort of "atomic" form of category.
>>
>>58050254
>decision
definition
>>
File: 1457059725250.jpg (99KB, 700x700px) Image search: [Google]
1457059725250.jpg
99KB, 700x700px
what the FUCK is a continuation monad
>>
>>58050318
I feel like a Google Pro right now
https://wiki.haskell.org/All_About_Monads#The_Continuation_monad
>>
>>58050192
It's actually pretty simple, but the functiontards keep explaining it in the stupidest ways so you'll never understand it.

This makes them feel intellectually superior.
>>
File: 1468879870998.jpg (50KB, 633x758px) Image search: [Google]
1468879870998.jpg
50KB, 633x758px
>>58050408
I know that but what does it actually DO ?
>>
>>58050426
explain it in a simple way
>>
>>58050506
imagine all you have are transformations from Int to Int to Int to Int to Int etc
now imagine you change an inner transformation so that you can divide by 0
now you want to change the return type of that function a "Int?" type
to do that you use monad
>>
>>58050540
that isn't simple
>>
>>58050192
it's functional composition for values, which are wrapped within a context, i.e. "inside the monad"
>>
>>58050506
read the book
http://learnyouahaskell.com/chapters
>>
>>58050192
You know that map thing? Imagine if that worked on nullable objects.
Thread posts: 19
Thread images: 5


[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.