To make use of Immutable.js collections, you need to make use of sequences and side-effects. A sequence is a number of operations that apply to a collection to transform it. A side-effect is what we do with the result of a sequence to interact with the outside world. The reason that we structure our Immutable.js code like this is because it's efficient and readable. In this chapter, we will learn about the following:
- How Immutable.js can efficiently process large collections using lazy evaluation
- Creating sequences and studying how to iterate over them
- How lazy filtering works
- Limiting the data that's actually processed and used