This section is a continuation of the Marble diagrams section of Chapter 1, Getting Started with Reactive and Functional Programming. Refer to that section to understand what a Marble diagram is and its rules and benefits.
In this section, we will discuss the following things:
- How to represent Marble diagrams for RxScala components
- How to represent Marble diagrams for RxScala basic operations
The following diagram shows what our RxScala application's input Observable looks like:
![](https://static.packt-cdn.com/products/9781787288645/graphics/assets/76a0fd26-4a2c-4ceb-95bd-6fedeb122fb9.png)
An input Observable (that is, a data stream) is represented, as shown in the following diagram; when the Observable ( the input data stream) emits the data elements, its associated Observer's onNext() function is executed to take data elements one by one to apply the data transformation:
![](https://static.packt-cdn.com/products/9781787288645/graphics/assets/24c40b5d-3c40-4bfb-8a3a-d87fd87b952e.png)
An Observer that is completed successfully is represented as follows. In the...