ArrayFactory SAM type / toArray
Andrey Breslav
andrey.breslav at jetbrains.com
Sun Oct 7 12:38:43 PDT 2012
Just to repeat on this thread:
I don't see why we need toArray() on Streams at all: we can make it work with .into() by providing corresponding Destination implementations:
stream().into(new ArrayDestination(Class/Lambda/whatever)).array()
And I doubt that there is such a huge number of use cases for creating arrays from streams that this solution isn't good enough.
--
Andrey Breslav
http://jetbrains.com
Develop with pleasure!
More information about the lambda-libs-spec-experts
mailing list