@@ -410,10 +410,10 @@ private static class TemporaryPair<A extends @Nullable Object, B extends @Nullab
410
410
* <pre>{@code
411
411
* mapWithIndex(
412
412
* Stream.of("a", "b", "c"),
413
- * (str , index) -> str + ":" + index )
413
+ * (e , index) -> index + ":" + e )
414
414
* }</pre>
415
415
*
416
- * <p>would return {@code Stream.of("a:0 ", "b:1 ", "c:2 ")}.
416
+ * <p>would return {@code Stream.of("0:a ", "1:b ", "2:c ")}.
417
417
*
418
418
* <p>The resulting stream is <a
419
419
* href="http://gee.cs.oswego.edu/dl/html/StreamParallelGuidance.html">efficiently splittable</a>
@@ -493,11 +493,11 @@ Splitr createSplit(Spliterator<T> from, long i) {
493
493
*
494
494
* <pre>{@code
495
495
* mapWithIndex(
496
- * IntStream.of(0, 1, 2 ),
497
- * (i , index) -> i + ":" + index )
496
+ * IntStream.of(10, 11, 12 ),
497
+ * (e , index) -> index + ":" + e )
498
498
* }</pre>
499
499
*
500
- * <p>...would return {@code Stream.of("0:0 ", "1:1 ", "2:2 ")}.
500
+ * <p>...would return {@code Stream.of("0:10 ", "1:11 ", "2:12 ")}.
501
501
*
502
502
* <p>The resulting stream is <a
503
503
* href="http://gee.cs.oswego.edu/dl/html/StreamParallelGuidance.html">efficiently splittable</a>
@@ -573,11 +573,11 @@ Splitr createSplit(Spliterator.OfInt from, long i) {
573
573
*
574
574
* <pre>{@code
575
575
* mapWithIndex(
576
- * LongStream.of(0, 1, 2 ),
577
- * (i , index) -> i + ":" + index )
576
+ * LongStream.of(10, 11, 12 ),
577
+ * (e , index) -> index + ":" + e )
578
578
* }</pre>
579
579
*
580
- * <p>...would return {@code Stream.of("0:0 ", "1:1 ", "2:2 ")}.
580
+ * <p>...would return {@code Stream.of("0:10 ", "1:11 ", "2:12 ")}.
581
581
*
582
582
* <p>The resulting stream is <a
583
583
* href="http://gee.cs.oswego.edu/dl/html/StreamParallelGuidance.html">efficiently splittable</a>
@@ -653,11 +653,11 @@ Splitr createSplit(Spliterator.OfLong from, long i) {
653
653
*
654
654
* <pre>{@code
655
655
* mapWithIndex(
656
- * DoubleStream.of(0, 1, 2),
657
- * (x , index) -> x + ":" + index )
656
+ * DoubleStream.of(0.0 , 1.0 , 2.0)
657
+ * (e , index) -> index + ":" + e )
658
658
* }</pre>
659
659
*
660
- * <p>...would return {@code Stream.of("0.0:0 ", "1.0:1 ", "2.0:2 ")}.
660
+ * <p>...would return {@code Stream.of("0:0.0 ", "1:1.0 ", "2:2.0 ")}.
661
661
*
662
662
* <p>The resulting stream is <a
663
663
* href="http://gee.cs.oswego.edu/dl/html/StreamParallelGuidance.html">efficiently splittable</a>
0 commit comments