Lazy lists?

Paul Sandoz paul.sandoz at oracle.com
Wed Oct 9 05:19:27 PDT 2013


HI,

On Oct 9, 2013, at 1:43 PM, "Millies, Sebastian" <Sebastian.Millies at softwareag.com> wrote:

> Hello Paul,
> 
> thanks for that example (although it computes the primes in the range up to 100, not the first 100 primes).

Right.


> First time I see flatMap in action.
> 

:-)


> My code was intended only as an example, I am aware of O'Neills paper. I still think having lazy collections
> would be nice. Your last sentence suggests you view them as an alternative to persistent collections. Or is
> that an over-interpretation?
> 

Over interpretation. I think persistent collections are the more important thing to be focusing on if we are going to add new collection types to the JDK.

Paul.


More information about the lambda-dev mailing list