Skip to content

Commit 481dc4d

Browse files
authored
Traversable.zipWithIndex() javadoc fix (#2706)
1 parent 06640bb commit 481dc4d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/main/java/io/vavr/collection/Traversable.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,15 +1690,11 @@ default <T1, T2, T3> Tuple3<Iterator<T1>, Iterator<T2>, Iterator<T3>> unzip3(
16901690
Traversable<Tuple2<T, Integer>> zipWithIndex();
16911691

16921692
/**
1693-
* Returns a traversable formed from this traversable and another Iterable collection by mapping elements.
1694-
* If one of the two iterables is longer than the other, its remaining elements are ignored.
1695-
* <p>
1696-
* The length of the returned traversable is the minimum of the lengths of this traversable and {@code that}
1697-
* iterable.
1693+
* Zips this traversable with its indices by applying mapper provided.
16981694
*
1699-
* @param <U> The type of the mapped elements.
1695+
* @param <U> The type of the mapped elements.
17001696
* @param mapper a mapper.
1701-
* @return a new traversable containing mapped elements of this traversable and {@code that} iterable.
1697+
* @return a new traversable containing elements of this traversable, zipped with indices, and mapped with mapper provided.
17021698
* @throws NullPointerException if {@code mapper} is null
17031699
*/
17041700
<U> Traversable<U> zipWithIndex(BiFunction<? super T, ? super Integer, ? extends U> mapper);

0 commit comments

Comments
 (0)