@ NotNull public IntStream peek ( @ NotNull final IntConsumer action ) { return new IntStream ( params , new IntPeek ( iterator , action ) ) ; }
Returns a stream consisting of the elements of this stream additionally performing the provided action on each element as elements are consumed from the resulting stream . Handy method for debugging purposes .