·
flatMap flatten a number of streams into a single stream:
―Operation Stream<R> flatMap(Function<T, Stream<R>> f) merges streams, it combines these different streams into a single stream.
―There are primitive variants: flatMapToInt, flatMapToLong, and flatMapToDouble
FIRST
NEXT
![broken image](http://custom-images.strikinglycdn.com/res/hrscywv4p/image/upload/c_limit,fl_lossy,h_9000,w_1200,f_auto,q_auto/784839/535425_651851.png)