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

It's 2017. Can anyone explain what a monad is?

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: 7
Thread images: 1

File: 123123112314435.jpg (14KB, 385x387px) Image search: [Google]
123123112314435.jpg
14KB, 385x387px
It's 2017. Can anyone explain what a monad is?
>>
(le)monad(e)
>>
>>58502588
nice reddit post, you fucking faggot.
>>
>>58502575
In what terms? Mostly people are just interested in it because they can create a pattern that simulates state in pure functional languages.

People don't really care about it's pure mathematical definition, I find. It's more a "WTF is this thing in haskell" issue.
>>
>>58502638
Can you explain simply how it simulates states while remaining pure?
>>
>>58502803

The state is represented by the datatype, not the function. A function can take a state structure and return a different one without any of its variables changing values.

Functions in pure mathematics don't have modifiable variables. That being the case, if you wanted to model a computer as a set of pure mathematical functions, you'd make a datatype to represent the state of the machine, and a function representing each of the machine's instructions..
>>
>>58502575
Leibniz
Thread posts: 7
Thread images: 1


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