public static < R > Stream < R > zip ( final ShortStream a , final ShortStream b , final ShortBiFunction < R > zipFunction ) { return zip ( a . iteratorEx ( ) , b . iteratorEx ( ) , zipFunction ) . onClose ( newCloseHandler ( N . asList ( a , b ) ) ) ; }
Zip together the a and b streams until one of them runs out of values . Each pair of values is combined into a single value using the supplied zipFunction function .