I could see a monad being defined as a list of (typed) states with a functor. But they’re still stateless.
I could also see immutable data structures being implemented in a stateful way (they usually are in non-FP languages).
I could see a monad being defined as a list of (typed) states with a functor. But they’re still stateless.
I could also see immutable data structures being implemented in a stateful way (they usually are in non-FP languages).