public void forPairs ( BiConsumer < ? super T , ? super T > action ) { pairMap ( ( a , b ) -> { action . accept ( a , b ) ; return null ; } ) . reduce ( null , selectFirst ( ) ) ; }
Performs an action for each adjacent pair of elements of this stream .