hg: lambda/lambda/jdk: Tweak spec of trySplit, then ensuring spliterator from iterator

Peter Levart peter.levart at gmail.com
Fri Apr 26 08:29:10 PDT 2013


On 04/26/2013 05:01 PM, paul.sandoz at oracle.com wrote:
> Changeset: f91091fa0cc3
> Author:    psandoz
> Date:      2013-04-26 17:00 +0200
> URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/f91091fa0cc3
>
> Tweak spec of trySplit, then ensuring spliterator from iterator
> implementations conform (a split can result in left hold all
> elements and the right holding none).

How can you determine when to stop splitting then and not fall into 
infinite loop?

>
> ! src/share/classes/java/util/Spliterator.java
>
>



More information about the lambda-dev mailing list