3 ms·
From inside the State monad though, it "looks just like" (has semantics of) mutability. It's simply interpreted in an immutable lambda calculus. The ST monad h
by tel 14y ago
From inside the State monad though, it "looks just like" (has semantics of) mutability. It's simply interpreted in an immutable lambda calculus.
The ST monad has the same game but a different interpreter.