inconsistency in invoking method

Brian Goetz brian.goetz at oracle.com
Sun Mar 3 18:52:10 PST 2013


On 3/3/2013 9:46 PM, Zhong Yu wrote:
> The problem is at the beginning
>      Arrays.asList(1.0).stream()
> which is a boxed Stream<Double>, not the primitive DoubleStream.
>
> Not sure what's the best way to create a DoubleStream though:
>      double[] data = {1.0};
>      DoubleStream stream = ?how?(data);

Arrays.stream(data)


More information about the lambda-dev mailing list