Peek() really to see the elements as they flow past a certain point in a pipeline
问题 My problem in most simple expressible way: According to JavaDoc : Peek() method exists mainly to support debugging, where you want to see the elements as they flow past a certain point in a pipeline. I have a pipe of 10 Meters and at the distance of 3 and 7 meter from input head i have two markers [aka peek() ] for checking/debugging my elements. Now from Input end i am giving input of 1,2,3,4,5 . At the point x = 4 meter , i have a filter() which filters all elements less than and equal to 3