You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Specified BiConsumer should receive stream element as first argument, and int value starting from 0 and incremented for each next element of the stream as second argument.
forEachWithIndex is similar to zipping stream with AtomicInteger and performing forEach, but note that peekWithIndex does NOT change type of the current stream.
The text was updated successfully, but these errors were encountered:
UberStream
should provide methods:peekWithIndex(BiConsumer<T,Integer>):UberStream<T>
forEachWithIndex(BiConsumer<T,Integer>):void
Specified
BiConsumer
should receive stream element as first argument, and int value starting from0
and incremented for each next element of the stream as second argument.forEachWithIndex
is similar to zipping stream with AtomicInteger and performingforEach
, but note thatpeekWithIndex
does NOT change type of the current stream.The text was updated successfully, but these errors were encountered: