Summary
In this chapter, we learned how to write custom operators. We started by writing simple operators that can perform basic tasks. Even though the operators we wrote (initially) were composable, we were not able to chain them together like standard RxCpp operators. After writing different genres of operators, we implemented chainable custom operators using the lift<T>
meta operator. Finally, we saw how we can add an operator to observable<T>
as well. In the next chapter, we'll delve into the world of design patterns and idioms for Rx programming. We'll start with GOF design patterns and implement different reactive programming patterns.