public static < L , M , R , O > Stream < O > zip ( Stream < L > lefts , Stream < M > middles , Stream < R > rights , TriFunction < L , M , R , O > combiner ) { return StreamSupport . stream ( TriZippingSpliterator . zipping ( lefts . spliterator ( ) , middles . spliterator ( ) , rights . spliterator ( ) , combiner ) , false ) . onClose ( closerFor ( lefts , middles , rights ) ) ; }
Zip together the left middle and right streams until any stream runs out of values . Each triple of values is combined into a single value using the supplied combiner function .