ints(), longs(), doubles() <was> Re: Ranges

Tim Peierls tim at
Fri May 3 06:00:35 PDT 2013

On Fri, May 3, 2013 at 4:46 AM, Paul Sandoz <paul.sandoz at> wrote:

> Following on from this are the idiomatic stream creation methods, we have
> previously discussed:
>   IntStream.ints();
>   LongStream.longs();
>   DoubleStream.doubles();
> Half-open, or closed? I think a closed range would be the most likely
> expectation, and could be implemented using rangeClosed.
> doubles() would be restricted to [0.0, 2.0^53].

I've missed something. How will the user see a difference between ints()
implemented as a closed range vs. a half-open range?


More information about the lambda-libs-spec-observers mailing list