The state monad in Java 8, eventually…

This is no tutorial about the state monad and I’d be foolish if I hoped to use all these convoluted snippets of strongly-typed generics-laden Java code to show the monad’s beautiful essence to someone who hasn’t yet caught at least a glimpse of it elsewhere.

On the other hand, what I present here is a non-trivial case that in its original C# version has taught me a lot about handling real problems using this monad.

Keep reading.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s