12 karma · joined Aug 16, 2023 (3y ago) · 12 submissions
comment 3y ago · link · parent
What on earth makes you convinced that a monad can be implemented in Excel? You don't understand what a monad is, so you can't know whether Excel is "perfectly capable" of it or not.
Read a bunch of monad tutorials, learn Haskell, hey, even develop some "mathematical maturity" if you can get over your disdain for math. That is the way to make progress.
It's not helpful to want monads to be tangible objects. It doesn't matter how much you want it. The world doesn't work like that.
comment 3y ago · link · parent
From Wadler's paper "The Essence of Functional Programming":
"2.1 What is a monad?
For our purposes, a monad is a triple (M,unitM,bindM) consisting of a type constructor M and a pair of polymorphic functions.
unitM :: a-> M a
bindM :: M a-> (a-> M b)-> M b
These functions must satisfy three laws, which are discussed in Section 2.10."
So the monad is a functor plus a few operations and laws. It is an algebraic structure, not a type of object or function.
comment 3y ago · link · parent
There are some examples of attempted implementations the list monad in other languages on RosettaCode https://rosettacode.org/wiki/Monads/List_monad
Caveat emptor, though. A lot of that page is erroneous.
A few years ago I fixed up the definition for F#, which is perhaps the closest thing to a language for ordinary Joes in which true monadic style can be defined/achieved.
comment 3y ago · link · parent
Nobody seems to know where "strength" got its opaque name from. Like, nobody, not even the guy who first published the term.
There is another article on the topic here:
http://comonad.com/reader/2008/deriving-strength-from-lazine...
comment 3y ago · link · parent
I think Pike definitely had not, at that point, explored the way types work in ML-style languages.
comment 3y ago · link · parent
In particular, this 1952 paper by Heezen and Ewing is celebrated https://gwern.net/doc/technology/1952-heezen.pdf