by Brian_K_White · 5y ago · 0 comments
* just a way of defining a list
* very much not that
* dealing with side effects using functions
Apparently the article is spot on. The concept may be understood, but may not be communicated.
It's quite interesting seeing the phenomenon play out just as described.
> and a double wrapping can be trivially unwrapped (“naturally transformed”) into a single one: {{xyz}} -> {xyz}
You've described the "pure" and "join" operations (in Haskell terms), which are two of the three requirements for a monad. The third and final requirement is that there must be a way to lift an arbitrary function on plain values to work on "wrapped" values: (x → y) → ({x} → {y}).