In the previous chapter, we explored the filtering universe of RxJava. We learned how to filter the values we don't need with
filter(), how to get subsets of the emitted values with
take(), and how to get rid of duplicates with
distinct(). We learned how to exploit time with
In this chapter, we will learn how to transform Observable sequences to create sequences that better fit our needs.
RxJava provides a few mapping functions:
switchMap(). All these functions apply to an Observable sequence, transform its emitted values, and return them in a new form. Let's look at them one by one with proper real-world ...