ints(), longs(), doubles() <was> Re: Ranges
Tim Peierls
tim at peierls.net
Fri May 3 06:00:35 PDT 2013
On Fri, May 3, 2013 at 4:46 AM, Paul Sandoz <paul.sandoz at oracle.com> 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?
--tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/lambda-libs-spec-experts/attachments/20130503/835b49cd/attachment.html
More information about the lambda-libs-spec-experts
mailing list