Operators
An operator is a function that acts on an Observable to produce a new Observable. In the process, the original Observable is not mutated but is a pure function. We have already covered lots of operators in the sample programs that we have written. In Chapter 9, Reactive GUI Programming Using Qt/C++, we will learn how to create custom operators to work on Observables. The fact that an operator does not mutate an Observable is a reason why declarative scheduling works in the Rx programming model. Rx operators can be categorized as follows:
- Creation operators
- Transformation operators
- Filtering operators
- Combining operators
- Error-handling operators
- Utility operators
- Boolean operators
- Mathematical operators
There are some operators available that do not fall into these categories. We will outline some of the key operators in the preceding categories in a table for quick reference.
Creational operators
These operators will help one to create various kinds of Observables from input data. We have...