flatMap
Description:
public Stream<
U>
flatMap<
U> (
owned MapFunc<
T,
Stream<
U>> fn)
Returns a Stream where each element is transformed into another Stream and then flattened.
Parameters:
| fn |
transformation function that returns a Stream.
|
Returns:
|
a flattened Stream of transformed elements.
|