In this section, we'll cover operators that transform emissions. You have already seen map(), which is the most obvious operator in this category. We'll start with that one.
Transforming operators
map()
For a given Observable<T>, the map() operator transforms an emitted value of the T type into a value of the R type (that may or may not be the same type T) using the Function<T,R> lambda expression provided. We have already used this operator many times, turning String objects into integers (their lengths), for example. This time, we will take raw date strings and use the map() operator to turn each of them into a LocalDate emission, as shown in the following code snippet:
import io.reactivex.rxjava3.core...