concept slicing in category java

This is an excerpt from Manning's book Java 8 in Action: Lambdas, streams, and functional-style programming.
We’ll now explore how you can use the Streams API in more detail. We’ll compare streams to collections and provide some background. In the next chapter, we’ll investigate in detail the stream operations available to express sophisticated data processing queries. We’ll look at many patterns such as filtering, slicing, finding, matching, mapping, and reducing. There will be many quizzes and exercises to try to solidify your understanding.
In this chapter, you’ll have an extensive look at the various operations supported by the Streams API. These operations will let you express complex data processing queries such as filtering, slicing, mapping, finding, matching, and reducing. Next, we’ll explore special cases of streams: numeric streams, streams built from multiple sources such as files and arrays, and finally infinite streams.