Stream from Iterable

Stephen Colebourne scolebourne at joda.org
Tue Dec 11 07:27:24 PST 2012


On 11 December 2012 14:29, Brian Goetz <brian.goetz at oracle.com> wrote:
> Try this:
>
> Streams.stream(Streams.spliterator(iter.iterator(), sizeIfKnown),
>                 flags);
>
> You might want ORDERED as a flag.

That seems quite verbose for what seems like a common operation...

Stephen


More information about the lambda-dev mailing list