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.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s