Java Streams and State

Java Streams and State

With Java 8 streams, it seems Functional Programming has won. I’ve seen only two usages:

Likewise, the following snippet is the most common example of :

Iteration is easy when the computation of the next term is simple. It’s not because Java offers Functional Programming, that it now disallows state.

Source: blog.frankel.ch