2 ms·
ST monad is not state; it's a convoluted way of threading a value through a chain of functions. State means we put the value into the same memory location (or C
by kazinator 10y ago
ST monad is not state; it's a convoluted way of threading a value through a chain of functions. State means we put the value into the same memory location (or CPU register, or piece of tape or whatever).
- pka 10y agoST is exactly that. You probably mean the State monad.