The Creating streams from different sources, Reducing the elements of a stream and Collecting the elements of a stream recipes in Chapter 6, Parallel and Reactive Streams