how to implement your own filter and zip functions for a stream
in scala? can someone provide an example code please?
Will Rate!
Thanks
ANS.:-
EXAMPLE CODE FOR THIS PROBLEM:-
public class Streams {
...
public static <A, B, R> Stream<R>
zip(Stream<A> streamA,
Stream<B> streamB, BiFunction<? super A, ? super B, R>
function) {
...
}
}
Get Answers For Free
Most questions answered within 1 hours.